Changeset 527 for library/bdm/estim/kalman.cpp
- Timestamp:
- 08/13/09 15:58:32 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/kalman.cpp
r477 r527 64 64 EKFfull::EKFfull ( ) : BM (), E() {}; 65 65 66 void EKFfull::set_parameters ( diffbifn* pfxu0, diffbifn*phxu0, const mat Q0, const mat R0 ) {66 void EKFfull::set_parameters ( const shared_ptr<diffbifn> &pfxu0, const shared_ptr<diffbifn> &phxu0, const mat Q0, const mat R0 ) { 67 67 pfxu = pfxu0; 68 68 phxu = phxu0; … … 168 168 169 169 170 void EKFCh::set_parameters ( diffbifn* pfxu0, diffbifn*phxu0, const chmat Q0, const chmat R0 ) {170 void EKFCh::set_parameters ( const shared_ptr<diffbifn> &pfxu0, const shared_ptr<diffbifn> &phxu0, const chmat Q0, const chmat R0 ) { 171 171 pfxu = pfxu0; 172 172 phxu = phxu0; … … 255 255 256 256 void EKFCh::from_setting ( const Setting &set ) { 257 diffbifn*IM = UI::build<diffbifn> ( set, "IM", UI::compulsory );258 diffbifn*OM = UI::build<diffbifn> ( set, "OM", UI::compulsory );257 shared_ptr<diffbifn> IM = UI::build<diffbifn> ( set, "IM", UI::compulsory ); 258 shared_ptr<diffbifn> OM = UI::build<diffbifn> ( set, "OM", UI::compulsory ); 259 259 260 260 //statistics … … 280 280 281 281 //connect 282 RV*drv = UI::build<RV> ( set, "drv", UI::compulsory );282 shared_ptr<RV> drv = UI::build<RV> ( set, "drv", UI::compulsory ); 283 283 set_drv ( *drv ); 284 RV*rv = UI::build<RV> ( set, "rv", UI::compulsory );284 shared_ptr<RV> rv = UI::build<RV> ( set, "rv", UI::compulsory ); 285 285 set_rv ( *rv ); 286 286