Changeset 62 for bdm/estim/libKF.h

Show
Ignore:
Timestamp:
04/06/08 20:14:56 (16 years ago)
Author:
smidl
Message:

nova simulace s EKFfixed a novy EKF na plnych maticich

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/estim/libKF.h

    r51 r62  
    2626 
    2727class KalmanFull { 
     28protected: 
    2829        int dimx, dimy, dimu; 
    2930        mat A, B, C, D, R, Q; 
     
    4748        //! print elements of KF 
    4849        friend std::ostream &operator<< ( std::ostream &os, const KalmanFull &kf ); 
    49  
     50        //! For EKFfull; 
     51        KalmanFull(){}; 
    5052}; 
    5153 
     
    166168 
    167169/*! 
     170\brief Extended Kalman Filter in full matrices 
     171 
     172An approximation of the exact Bayesian filter with Gaussian noices and non-linear evolutions of their mean. 
     173*/ 
     174class EKFfull : public KalmanFull, public BM { 
     175        //! Internal Model f(x,u) 
     176        diffbifn* pfxu; 
     177        //! Observation Model h(x,u) 
     178        diffbifn* phxu; 
     179public: 
     180        //! Default constructor 
     181        EKFfull ( RV rvx, RV rvy, RV rvu ); 
     182        //! Set nonlinear functions for mean values and covariance matrices. 
     183        void set_parameters ( diffbifn* pfxu, diffbifn* phxu, const mat Q0, const mat R0 ); 
     184        //! Here dt = [yt;ut] of appropriate dimensions 
     185        void bayes ( const vec &dt ); 
     186        //! set estimates 
     187        void set_est (vec mu0, mat P0){mu=mu0;P=P0;}; 
     188        //!dummy! 
     189        epdf& _epdf(){enorm<fsqmat> E(rv); return E;}; 
     190}; 
     191 
     192/*! 
    168193\brief Extended Kalman Filter 
    169194 
     
    186211 
    187212/*! 
    188 \brief Extended Kalman Filter in Square roor 
     213\brief Extended Kalman Filter in Square root 
    189214 
    190215An approximation of the exact Bayesian filter with Gaussian noices and non-linear evolutions of their mean. 
     
    330355 
    331356}; 
     357  
     358 
    332359 
    333360//TODO why not const pointer??