Changeset 379 for applications
- Timestamp:
- 06/17/09 23:53:11 (16 years ago)
- Location:
- applications/mpdm
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/mpdm/SYSID09/merg_2a.cpp
r321 r379 126 126 mepdf eG2 ( P2._e() ); 127 127 Array<mpdf*> A ( 2 ); A ( 0 ) =&eG1;A ( 1 ) =&eG2; 128 merger M ( A ); 129 M.set_parameters ( 2, 100,20 ,0.99); M._Mix().set_method(QB); 128 merger_mix M ( A ); 129 M.set_parameters ( 20 ,0.99); 130 M.set_method(LOGNORMAL, 1.2); 131 M._Mix().set_method(QB); 130 132 //M2.set_parameters ( 100.0, 1000,3 ); //M2._Mix().set_method(QB); 131 133 /* char fnm[100]; 132 134 sprintf(fnm,"m2a_dbg%d.it",t); 133 135 M.debug_file(fnm);*/ 134 M. merge ( proposal);135 136 M.set_support ( *proposal,100 ); 137 M.merge(); 136 138 //proposal = M.proposal(); 137 139 //Likelihood -
applications/mpdm/TR2244/merger_iter_cond.cpp
r310 r379 34 34 A ( 1 ) =&mf2; 35 35 36 merger M ( A );37 M. debug_file("iter_cond_debug.it");36 merger_mix M ( A ); 37 M.set_debug_file("iter_cond_debug.it"); 38 38 enorm<ldmat> g0; g0.set_rv ( all ); 39 39 mat Cov=10*eye ( 2 ); … … 45 45 // mlnorm<ldmat>* testm=(mlnorm<ldmat>*)teste->condition(u2); 46 46 47 M.set_parameters ( 1.2,1000,1,0.5); 47 M.set_parameters (1,0.5); 48 M.set_method(LOGNORMAL, 1.2); 48 49 49 50 Array<vec> YUU(2); … … 66 67 67 68 for ( int it=0;it<Ntrials;it++ ) { 68 M.merge ( &g0 ); 69 69 M.set_support( g0,1000); 70 M.merge(); 71 70 72 MixEF &MM = M._Mix(); 71 73 epdf* MP = MM._Coms ( 0 )->epredictor ( );