Changeset 62 for bdm/estim/libKF.h
- Timestamp:
- 04/06/08 20:14:56 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/estim/libKF.h
r51 r62 26 26 27 27 class KalmanFull { 28 protected: 28 29 int dimx, dimy, dimu; 29 30 mat A, B, C, D, R, Q; … … 47 48 //! print elements of KF 48 49 friend std::ostream &operator<< ( std::ostream &os, const KalmanFull &kf ); 49 50 //! For EKFfull; 51 KalmanFull(){}; 50 52 }; 51 53 … … 166 168 167 169 /*! 170 \brief Extended Kalman Filter in full matrices 171 172 An approximation of the exact Bayesian filter with Gaussian noices and non-linear evolutions of their mean. 173 */ 174 class EKFfull : public KalmanFull, public BM { 175 //! Internal Model f(x,u) 176 diffbifn* pfxu; 177 //! Observation Model h(x,u) 178 diffbifn* phxu; 179 public: 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 /*! 168 193 \brief Extended Kalman Filter 169 194 … … 186 211 187 212 /*! 188 \brief Extended Kalman Filter in Square roo r213 \brief Extended Kalman Filter in Square root 189 214 190 215 An approximation of the exact Bayesian filter with Gaussian noices and non-linear evolutions of their mean. … … 330 355 331 356 }; 357 358 332 359 333 360 //TODO why not const pointer??