Changeset 279 for bdm/estim/libKF.cpp

Show
Ignore:
Timestamp:
02/24/09 14:12:19 (15 years ago)
Author:
smidl
Message:

Transition of pmsm and libKF

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/estim/libKF.cpp

    r278 r279  
    164164 
    165165 
    166 EKFCh::EKFCh ( ) : KalmanCh (  ) {} 
    167166 
    168167void EKFCh::set_parameters ( diffbifn* pfxu0,  diffbifn* phxu0,const chmat Q0,const chmat R0 ) { 
     
    170169        phxu = phxu0; 
    171170 
     171        dimx = pfxu0->_dimy(); 
     172        dimy = phxu0->_dimy(); 
     173        dimu = pfxu0->_dimu(); 
     174        // set size of mu - just for constant terms of A and C  
     175        _mu=zeros(dimx); 
     176        A=zeros(dimx,dimx); 
     177        C=zeros(dimy,dimx); 
     178        preA=zeros(dimy+dimx+dimx, dimy+dimx); 
     179         
    172180        //initialize matrices A C, later, these will be only updated! 
    173181        pfxu->dfdx_cond ( _mu,zeros ( dimu ),A,true );