master
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

1) function timePointMatrix = buildTimePointMatrix(timeline,argStruct)
Christoph Budziszewski added 2nd classification me...

Christoph Budziszewski authored 15 years ago

2) 
3) 
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

4) timeLineStart   = timeline.frameShiftStart;
5) timeLineEnd     = timeline.frameShiftEnd;
6) globalStart     = timeline.psthStart;
7) globalEnd       = timeline.psthEnd;
8) decodeDuration  = timeline.decodeDuration;
Christoph Budziszewski added 2nd classification me...

Christoph Budziszewski authored 15 years ago

9) 
Christoph Budziszewski refactored to arg-structs!...

Christoph Budziszewski authored 15 years ago

10) pst             = argStruct.pst;
11) eventList       = argStruct.eventList;
Christoph Budziszewski added 2nd classification me...

Christoph Budziszewski authored 15 years ago

12) labelMap        = argStruct.labelMap;
13) 
14) timePointMatrix = {};
15) %%% build timepoint Matrix
16) for timeShift   = timeLineStart:1:timeLineEnd
17)     % center timepoint && relative shift
18)     frameStart  = floor(-globalStart+1+timeShift - 0.5*decodeDuration);
19)     frameEnd    = min(ceil(frameStart+decodeDuration + 0.5*decodeDuration),-globalStart+globalEnd);
20) 
21)     %build svm inputmatrix
22)     index = timeShift-timeLineStart+1; %Bad 1-indexing :-(
23)     timePointMatrix{index} =[];
24)     anyvoxel = 1;
25)     for pstConditionGroup = 1:size(pst{1,anyvoxel},2)
26)         for dp = 1:size(pst{1,anyvoxel}{1,pstConditionGroup},1) % data point
Christoph Budziszewski refactored LabelMap getter...

Christoph Budziszewski authored 15 years ago

27)             row = lm_getSVMLabel(labelMap,eventList(pstConditionGroup,1));