-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtupacCollectAllSnips.m
26 lines (20 loc) · 1 KB
/
tupacCollectAllSnips.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
dataRoot = 'E:/Grad/Data/Tupac';
load tupac-dates.mat
centerOut = loadCenterOut(dataRoot, dates);
drawing = loadDrawing(dataRoot, dates);
coutSnips = snipPeak(centerOut);
coutRate = snipSmoothedRate(coutSnips, centerOut, .4, 0);
coutKin = snipKinematics(coutSnips, centerOut, 0);
drawingSnips = snipDrawingCycles(drawing);
drawingRate = snipSmoothedRate(drawingSnips, drawing, .4, 0);
drawingKin = snipKinematics(drawingSnips, drawing, 0);
drawing = prune(drawing, drawingSnips, .5);
centerOut = prune(centerOut, coutSnips, .5);
coutRateMean = meanByTarget3D(coutSnips, coutRate);
coutKinMean = meanByTarget3D(coutSnips, coutKin);
drawingRateMean = meanByDrawing(drawingSnips, drawingRate);
drawingKinMean = meanByDrawing(drawingSnips, drawingKin);
coutSnipsMean = meanByTarget3D(coutSnips, coutSnips);
drawingSnipsMean = meanByDrawing(drawingSnips, drawingSnips);
[coutRate, coutRateMean, drawingRate, drawingRateMean] = synchFields(coutRate, coutRateMean, drawingRate, drawingRateMean);
loadLags;