transport changes
Christoph Budziszewski

Christoph Budziszewski commited on 2009-01-25 23:31:24
Zeige 2 geänderte Dateien mit 11 Einfügungen und 5 Löschungen.


git-svn-id: https://svn.discofish.de/MATLAB/spmtoolbox/SVMCrossVal@116 83ab2cfd-5345-466c-8aeb-2b2739fb922d
... ...
@@ -18,6 +18,8 @@ switch nargin
18 18
         psth              = inputStruct.rawTimeCourse;
19 19
         SubjectID         = inputStruct.SubjectID;
20 20
         smoothed          = inputStruct.smoothed;
21
+        PLOT_METHOD       = inputStruct.CROSSVAL_METHOD;
22
+        CROSSVAL_METHOD_DEF = inputStruct.CROSSVAL_METHOD_DEF;
21 23
 
22 24
     otherwise
23 25
         error('spmtoolbox:SVMCrossVal:plotDecodePerformance:WrongArgument','Wrong Arguments');
... ...
@@ -48,10 +50,8 @@ end
48 50
     axis([psthStart psthEnd 0 100])
49 51
     
50 52
     
51
-    PLOT_EXTRAS = 'class performance'
52
-    
53
-    switch PLOT_EXTRAS
54
-        case 'stderr'
53
+    switch PLOT_METHOD
54
+        case 'stderr' || CROSSVAL_METHOD_DEF.svmcrossval
55 55
             plot(frameStart:frameEnd, mean(decodePerformance,2) ,'b');
56 56
 
57 57
             se = myStdErr(decodePerformance,2);
... ...
@@ -69,7 +69,9 @@ end
69 69
     
70 70
     hold off;
71 71
     
72
-    title = sprintf('Subject %s, over %g voxel, smoothed %s',SubjectID,size(psth,2),smoothed);
72
+    nvoxel = size(psth,2);
73
+
74
+    title = sprintf('Subject %s, over %g voxel, smoothed %s',SubjectID,nvoxel,smoothed);
73 75
     set(f,'Name',title);
74 76
     display(sprintf('%s',title));
75 77
 
... ...
@@ -82,6 +82,10 @@ end
82 82
         display('Plotting...');
83 83
 
84 84
         plotParams                   = struct;
85
+        
86
+        plotParams.CROSSVAL_METHOD_DEF = CROSSVAL_METHOD_DEF;
87
+        plotParams.CROSSVAL_METHOD     = calculateParams.CROSSVAL_METHOD;
88
+        
85 89
         plotParams.psthStart         = calculateParams.psthStart;
86 90
         plotParams.psthEnd           = calculateParams.psthEnd;
87 91
         plotParams.nClasses          = length(calculateParams.classList);
88 92