Changeset 270 for bdm/estim/libKF.cpp

Show
Ignore:
Timestamp:
02/16/09 10:02:08 (15 years ago)
Author:
smidl
Message:

Changes in the very root classes!
* rv and rvc are no longer compulsory,
* samplecond does not return ll
* BM has drv

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/estim/libKF.cpp

    r262 r270  
    6262 
    6363 /////////////////////////////// EKFS 
    64 EKFfull::EKFfull ( RV rvx0, RV rvy0, RV rvu0 ) : BM ( rvx0 ),E(rvx0) {}; 
     64EKFfull::EKFfull ( ) : BM (),E() {}; 
    6565 
    6666void EKFfull::set_parameters ( diffbifn* pfxu0,  diffbifn* phxu0,const mat Q0,const mat R0 ) { 
     
    6868        phxu = phxu0; 
    6969 
    70         dimx = rv.count(); 
     70        dimx = pfxu0->_dimx(); 
    7171        dimy = phxu0->_dimy(); 
    7272        dimu = pfxu0->_dimu(); 
     
    163163 
    164164 
    165 EKFCh::EKFCh ( RV rvx0, RV rvy0, RV rvu0 ) : KalmanCh ( rvx0,rvy0,rvu0 ) {} 
     165EKFCh::EKFCh ( ) : KalmanCh ( ) {} 
    166166 
    167167void EKFCh::set_parameters ( diffbifn* pfxu0,  diffbifn* phxu0,const chmat Q0,const chmat R0 ) { 
     
    241241 
    242242void KFcondQR::condition ( const vec &QR ) { 
    243         it_assert_debug ( QR.length() == ( rvc.count() ),"KFcondRQ: conditioning by incompatible vector" ); 
     243        it_assert_debug ( QR.length() == ( dimx+dimy ),"KFcondRQ: conditioning by incompatible vector" ); 
    244244 
    245245        Q.setD ( QR ( 0, dimx-1 ) ); 
     
    248248 
    249249void KFcondR::condition ( const vec &R0 ) { 
    250         it_assert_debug ( R0.length() == ( rvc.count() ),"KFcondR: conditioning by incompatible vector" ); 
     250        it_assert_debug ( R0.length() == ( dimy ),"KFcondR: conditioning by incompatible vector" ); 
    251251 
    252252        R.setD ( R0 );