Changeset 488 for library/tests
- Timestamp:
- 08/08/09 13:43:13 (15 years ago)
- Location:
- library/tests
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/testResample.cpp
r477 r488 25 25 euni eun; 26 26 eun.set_parameters ( "0", "1" ); 27 emp.set_statistics ( ones ( 10 ), &eun );27 emp.set_statistics ( ones ( 10 ), eun ); 28 28 vec &v = emp._w(); 29 29 Array<vec> &S = emp._samples(); -
library/tests/testSmp.cpp
r477 r488 86 86 cout << "======= MMix ======== " << endl; 87 87 mmix mMix; 88 Array< mpdf*> mComs ( 2 );88 Array<shared_ptr<mpdf> > mComs ( 2 ); 89 89 mComs ( 0 ) = &mG; 90 90 eN.set_mu ( vec_2 ( 0.0, 0.0 ) ); … … 94 94 95 95 Smp = mMix.samplecond_m ( mu0, N ); 96 disp ( mMix.e()->mean(), zeros ( 2 ), Smp );96 disp ( 0.5*eN.mean()+0.4*eG.mean(), zeros ( 2 ), Smp ); 97 97 98 98 cout << "======= EProd ======== " << endl; -
library/tests/test_kalman_QR.cpp
r477 r488 69 69 KF_QR.set_parameters ( &evolQR, &evolQR, 100 ); 70 70 evolQR.condition ( "1 1 1" ); 71 KF_QR.set_statistics ( evolQR.e(), &KF ); 71 egamma kfinit=egamma("10 10 10","1 1 1"); 72 KF_QR.set_statistics ( egamma("10 10 10","1 1 1"), &KF ); 72 73 const epdf& mpost = KF_QR.posterior(); 73 74 const epdf& mposttr = KFtr.posterior(); -
library/tests/test_particle.cpp
r477 r488 25 25 euni eun; 26 26 eun.set_parameters ( "0", "1" ); 27 emp.set_statistics ( ones ( 10 ), &eun );27 emp.set_statistics ( ones ( 10 ), eun ); 28 28 vec &v = emp._w(); 29 29 Array<vec> &S = emp._samples();