private/defineGlobals.m
2e65fc12
 function defineGlobals()
9e39a52b
 global SVMCROSSVAL_SPMDIR;
 global SVMCROSSVAL_TOOLBOXPATH;
 SVMCROSSVAL_TOOLBOXPATH = fullfile(SVMCROSSVAL_SPMDIR,'toolbox','SVMCrossVal');
 
 global SVMCROSSVAL_STUDYDIR;
 SVMCROSSVAL_STUDYDIR = fullfile(SVMCROSSVAL_TOOLBOXPATH,'study');
 
2e65fc12
 %define global constants
 global SVMCROSSVAL_USE_DRIVE_CHECK_HACK;
 %enables subroutine to check if image path starts with 'D'
 SVMCROSSVAL_USE_DRIVE_CHECK_HACK                  = 1;  
 
 global SVMCROSSVAL_CROSSVAL_METHOD_DEF;
 % supported classification methods
 SVMCROSSVAL_CROSSVAL_METHOD_DEF.svmcrossval       = 'svm crossval';
 SVMCROSSVAL_CROSSVAL_METHOD_DEF.classPerformance  = 'svm class performance';
 SVMCROSSVAL_CROSSVAL_METHOD_DEF.crossSubject      = 'svm across subject testing';
 SVMCROSSVAL_CROSSVAL_METHOD_DEF.somTraining       = 'som Training';
 
 global SVMCROSSVAL_VOXEL_SELECTION_MODE_DEF;
 % supported voxel selection methods
 SVMCROSSVAL_VOXEL_SELECTION_MODE_DEF.manualGui    = 'manually defined in GUI';
 SVMCROSSVAL_VOXEL_SELECTION_MODE_DEF.roiImage     = 'use ROI image by pop-up image selector';
 
 global SVMCROSSVAL_SUBJECT_PREFIX;
 % internally used to prefix subject-ids starting with numbers.
 SVMCROSSVAL_SUBJECT_PREFIX                        = 'subject';
0e963b35
 
 global SVMCROSSVAL_SUBJECTSTRUCT_NAME;
8959ce94
 SVMCROSSVAL_SUBJECTSTRUCT_NAME                    = 'subjectStruct';
 
 global SVMCROSSVAL_PREPROCESSED_DATA_NAME;
 SVMCROSSVAL_PREPROCESSED_DATA_NAME                = 'preprocessedData';
2e65fc12
 end