Changeset 1467
- Timestamp:
- 08/02/12 22:43:42 (12 years ago)
- Location:
- library/bdm/estim
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/kalman.cpp
r1388 r1467 424 424 UI::get ( dR, set, "dR", UI::compulsory ); 425 425 set_parameters ( IM, OM, diag ( dQ ), diag ( dR ) ); 426 UI::get ( log_level, set, "log_level", UI::optional ); 426 427 } 427 428 -
library/bdm/estim/kalman.h
r1328 r1467 377 377 378 378 class EKFCh : public KalmanCh { 379 LOG_LEVEL(EKFCh,logCh); 379 380 protected: 380 381 //! Internal Model f(x,u) … … 416 417 \endcode 417 418 */ 418 void from_setting ( const Setting &set ); 419 void from_setting ( const Setting &set ); 420 421 void log_register(logger &L, const string &prefix){ 422 BM::log_register ( L, prefix ); 423 424 L.add_vector ( log_level, logCh, RV ("Ch", dimension()*dimension() ), prefix ); 425 }; 426 427 void log_write() const{ 428 BM::log_write(); 429 if ( log_level[logCh] ) { 430 vec v(est._R()._Ch()._data(), dimension()*dimension()); 431 if (v(0)<0) 432 v= -v; 433 log_level.store( logCh, v); 434 } 435 436 }; 419 437 420 438 void validate() {};