Changeset 125
- Timestamp:
- 06/20/08 11:16:53 (17 years ago)
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r118 r125 23 23 ELSE() 24 24 #This is for UNIX makefile which does only one release at a time. 25 SET(CMAKE_BUILD_TYPE Debug)25 # SET(CMAKE_BUILD_TYPE Debug) 26 26 SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wall") 27 27 ENDIF(WIN32) -
bdm/estim/libPF.h
r115 r125 147 147 double WL = 0.0; 148 148 149 cout << est.mean(); 150 149 151 for ( i=0;i<n;i++ ) { 150 152 //generate new samples from paramater evolution model; … … 157 159 } 158 160 159 if ( true ) { 161 cout << min(lls) << "'" << max(lls)<<endl; 162 163 if ( false) { 160 164 for ( i=0;i<n;i++ ) { 161 165 WL = _w ( i ) *exp ( llsP ( i ) ); //using old weights! … … 199 203 }; 200 204 cout << '.'; 205 cout << est.mean() << endl; 201 206 } 202 207 } -
pmsm/pmsm_mix.cpp
r117 r125 79 79 // cout << Eevol.sample() <<endl; 80 80 81 mepdf evolQR(rQR,rQR,& Eevol);81 mepdf evolQR(rQR,rQR,&Ucom); 82 82 MPF<EKFful_unQR> M ( rx,rQR, evolQR, evolQR, Npar, EKU ); 83 M.set_est ( evolQR._epdf() ); 83 84 84 85 epdf& Efix_ep = Efix._epdf(); -
tests/CMakeLists.txt
r122 r125 29 29 add_executable (loggers_test loggers_test.cpp) 30 30 target_link_libraries (loggers_test ${BdmLibs}) 31 32 add_executable (blas_test blas_test.cpp) 33 target_link_libraries (blas_test ${BdmLibs}) 31 34 32 35 add_executable (test0 test0.cpp) -
tests/testSmp.cpp
r115 r125 78 78 disp(eMix.mean(),zeros(2),Smp); 79 79 80 cout << "======= MMix_triv ======== " << endl; 81 mepdf mMix(rv,rv,&eMix); 80 cout << "======= MEpdf ======== " << endl; 81 mepdf meMix(rv,rv,&eMix); 82 83 Smp = meMix.samplecond(mu0,lik,N); 84 disp(eMix.mean(),zeros(2),Smp); 85 86 cout << "======= MMix ======== " << endl; 87 mmix mMix(rv,rv); 88 Array<mpdf*> mComs(2); 89 mComs(0) = &mG; 90 eN.set_mu(vec_2(0.0,0.0)); 91 mepdf mEnorm(rv,rv,&eN); 92 mComs(1) = &mEnorm; 93 mMix.set_parameters(vec_2(0.5,0.5),mComs); 82 94 83 95 Smp = mMix.samplecond(mu0,lik,N); 84 disp( eMix.mean(),zeros(2),Smp);96 disp(mMix._epdf().mean(),zeros(2),Smp); 85 97 86 98 //Exit program: