- Timestamp:
- 03/25/11 19:52:13 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/estim/kalman.cpp
r1295 r1312 520 520 mat tU; 521 521 mat P= U*diag(D)*U.T(); 522 523 vec xref(4); 524 xref(0)= 30.0*1.4142 *4.; 525 xref(1)= 30.0*1.4142 *4.; 526 xref(2)= 6.283185*200.*4.; 527 xref(3) = 3.141593; 522 523 vec xref; 524 if (dim==4){ 525 xref.set_length(4); 526 xref(0)= 30.0*1.4142 *4.; 527 xref(1)= 30.0*1.4142 *4.; 528 xref(2)= 6.283185*200.*4.; 529 xref(3) = 3.141593; 528 530 //xref(4) = 34.0; 531 }else{ 532 xref.set_length(2); 533 xref(0)= 6.283185*200.*4.; 534 xref(1) = 3.141593; 535 536 } 529 537 530 538 mat T = diag(1.0/(xref)); … … 538 546 vec tmp=vec(Pld._L()._data(),dimension()*dimension()); 539 547 log_level.store(logU,round(((int)1<<15)*tmp)); 548 vec vPf(Pf._data(),Pf._datasize()); 549 log_level.store(logP,round(((int)1<<15)*vPf)); 540 550 log_level.store(logD,(Pld._D()*(1<<15))); 541 551