Changeset 504 for library/tests/mixtures_test.cpp
- Timestamp:
- 08/12/09 09:27:40 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/mixtures_test.cpp
r477 r504 53 53 fsqmat V2 ( mat ( "2 -0.1; -0.1 2" ) ); 54 54 55 enorm<fsqmat> C1;56 C1 .set_rv ( x );57 C1 .set_parameters ( m1, V1 );58 enorm<fsqmat> C2;59 C2 .set_rv ( x );60 C2 .set_parameters ( m2, V2 );55 shared_ptr<enorm<fsqmat> > C1 = new enorm<fsqmat>(); 56 C1->set_rv ( x ); 57 C1->set_parameters ( m1, V1 ); 58 shared_ptr<enorm<fsqmat> > C2 = new enorm<fsqmat>(); 59 C2->set_rv ( x ); 60 C2->set_parameters ( m2, V2 ); 61 61 62 Array< epdf*> Sim ( 2 );63 Sim ( 0 ) = &C1;64 Sim ( 1 ) = &C2;62 Array<shared_ptr<epdf> > Sim ( 2 ); 63 Sim ( 0 ) = C1; 64 Sim ( 1 ) = C2; 65 65 emix Simul; 66 66 Simul.set_rv ( x ); 67 Simul.set_parameters ( "0.5 0.6", Sim , false);67 Simul.set_parameters ( "0.5 0.6", Sim ); 68 68 69 69 // Sample parameters