Changeset 317
- Timestamp:
- 04/23/09 13:18:58 (16 years ago)
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/estim/libKF.h
r283 r317 179 179 */ 180 180 class EKFfull : public KalmanFull, public BM { 181 181 protected: 182 182 //! Internal Model f(x,u) 183 183 diffbifn* pfxu; -
bdm/stat/libBM.h
r301 r317 709 709 bool opt_L_bounds; 710 710 //! Add all logged variables to a logger 711 v oid log_add ( logger *L, const string &name="" ) {711 virtual void log_add ( logger &L, const string &name="" ) { 712 712 // internal 713 713 RV r; … … 716 716 717 717 // Add mean value 718 LIDs ( 0 ) =L ->add ( r,name );718 LIDs ( 0 ) =L.add ( r,name ); 719 719 if ( opt_L_bounds ) { 720 LIDs ( 1 ) =L ->add ( r,name+"_lb" );721 LIDs ( 2 ) =L ->add ( r,name+"_ub" );720 LIDs ( 1 ) =L.add ( r,name+"_lb" ); 721 LIDs ( 2 ) =L.add ( r,name+"_ub" ); 722 722 } 723 723 } 724 v oid logit ( logger *L ) {725 L ->logit ( LIDs ( 0 ), posterior().mean() );724 virtual void logit ( logger &L ) { 725 L.logit ( LIDs ( 0 ), posterior().mean() ); 726 726 if ( opt_L_bounds ) { 727 727 vec ub,lb; 728 728 posterior().qbounds ( lb,ub ); 729 L ->logit ( LIDs ( 1 ), lb );730 L ->logit ( LIDs ( 2 ), ub );729 L.logit ( LIDs ( 1 ), lb ); 730 L.logit ( LIDs ( 2 ), ub ); 731 731 } 732 732 } -
pmsm/TR2245/pmsm_wishart.cpp
r295 r317 94 94 95 95 KFE.set_options ( "logbounds" ); 96 KFE.log_add ( L,"KF" );96 KFE.log_add ( *L,"KF" ); 97 97 M.set_options ( "logbounds" ); 98 M.log_add ( L,"M" );98 M.log_add ( *L,"M" ); 99 99 DS->log_add(*L); 100 100 L->init(); … … 122 122 DS->logit (*L); 123 123 124 KFE.logit ( L );125 M.logit ( L );124 KFE.logit ( *L ); 125 M.logit ( *L ); 126 126 L->step(); 127 127 } -
pmsm/TR2245/unitsteps.cpp
r294 r317 87 87 88 88 KFE.set_options ( "logbounds" ); 89 KFE.log_add ( L,"KF" );89 KFE.log_add ( *L,"KF" ); 90 90 M.set_options ( "logbounds" ); 91 M.log_add ( L,"M" );91 M.log_add ( *L,"M" ); 92 92 L->init(); 93 93 … … 132 132 L->logit ( l_Q,Qdiag ); 133 133 134 KFE.logit ( L );135 M.logit ( L );134 KFE.logit ( *L ); 135 M.logit ( *L ); 136 136 L->step(); 137 137 } -
pmsm/TR2245/wishart.cpp
r295 r317 91 91 92 92 KFE.set_options ( "logbounds" ); 93 KFE.log_add ( L,"KF" );93 KFE.log_add ( *L,"KF" ); 94 94 M.set_options ( "logbounds" ); 95 M.log_add ( L,"M" );95 M.log_add ( *L,"M" ); 96 96 L->init(); 97 97 … … 156 156 L->logit ( l_fullQ,vec(fQ._data(),16) ); 157 157 158 KFE.logit ( L );159 M.logit ( L );158 KFE.logit ( *L ); 159 M.logit ( *L ); 160 160 L->step(); 161 161 }