Changeset 742 for applications/bdmtoolbox
- Timestamp:
- 11/26/09 22:46:08 (15 years ago)
- Location:
- applications/bdmtoolbox/mex
- Files:
-
- 1 added
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/CMakeLists.txt
r735 r742 23 23 MEX(lqg_redesign) 24 24 MEX(mixef_init) 25 EXEC(mixef_init) -
applications/bdmtoolbox/mex/mixef_init.cpp
r735 r742 38 38 Cfg.writeFile("mixef_init.cfg"); 39 39 40 #else 41 int main() { 42 UIFile Cfg ( "mixef_init.cfg" ); 43 mat Data=randn(2,100); // <<<<<<<<< ============== beware!!! 44 #endif 45 40 46 shared_ptr<BMEF> com1=UI::build<BMEF>(Cfg.getRoot()); 41 47 MixEF mix; 42 48 mix.init(&(*com1),Data,10); 43 mix.bayes_batch(Data,zeros(0,Data. rows()),ones(Data.rows()));49 mix.bayes_batch(Data,zeros(0,Data.cols()),ones(Data.cols())); 44 50 51 #ifdef MEX 45 52 mxArray* tmp= mxCreateStructMatrix(1,1,0, NULL); 46 53 UImxArray out(tmp); 47 54 mix.to_setting(out); 48 55 output[0]=tmp; 56 #else 57 Config Out; 58 mix.to_setting(Out.getRoot()); 59 Out.writeFile("mixef_init.out"); 60 #endif 49 61 } 50 #endif