Changeset 1199
- Timestamp:
- 09/29/10 11:22:16 (14 years ago)
- Location:
- library/bdm/estim
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/kalman.cpp
r1173 r1199 519 519 mat P= U*diag(D)*U.T(); 520 520 521 vec xref( 5);521 vec xref(4); 522 522 xref(0)= 30.0*1.4142; 523 523 xref(1)= 30.0*1.4142; 524 524 xref(2)= 6.283185*200.; 525 525 xref(3) = 3.141593; 526 xref(4) = 34.0;526 //xref(4) = 34.0; 527 527 528 528 mat T = diag(1.0/(xref)); … … 533 533 //vec tmp=vec(U._data(),dimension()*dimension()); 534 534 vec tmp=vec(Pld._L()._data(),dimension()*dimension()); 535 log_level.store(logU,round(((int)1<<14)*tmp)); 536 log_level.store(logD,Pld._D()); 535 log_level.store(logU,round(((int)1<<15)*tmp)); 536 log_level.store(logD,round(Pld._D()*(1<<15))); 537 538 mat Atr=T*A*diag(xref)*(1<<15); 539 mat Att=Atr.T(); 540 vec vA(Att._data(), dimension()*dimension()); 541 log_level.store(logA,vA); 542 537 543 } 538 544 if ( log_level[logG] ){ -
library/bdm/estim/kalman.h
r1173 r1199 430 430 protected: 431 431 //! logger 432 LOG_LEVEL(EKF_UD,logU, logG, logD );432 LOG_LEVEL(EKF_UD,logU, logG, logD,logA); 433 433 //! Internal Model f(x,u) 434 434 shared_ptr<diffbifn> pfxu; … … 481 481 if ( log_level[logD] ) 482 482 L.add_vector ( log_level, logD, RV ( dimension()), prefix ); 483 484 L.add_vector ( log_level, logA, RV ( dimension()*dimension()), prefix ); 483 485 484 486 }