Jafar
|
Kalman filter for an one dimensional constant position model. More...
Kalman filter for an one dimensional constant position model.
This class provides a Kalman filter for an one dimensional constant position model. It's a simple one dimensional Kalman filter.
Definition at line 12 of file constPositionKF.hpp.
#include <constPositionKF.hpp>
Public Member Functions | |
void | initKF (double initPos, double initVar) |
Initialices the Kalman filter with initPos and initVar. | |
void | updateKF (double y, double sigmaY, double sigmaV) |
Updates the Kalman Filter and updates the prediction for the next step (see getPred()) | |
void | getPred (double &pos, double &c11) |
Provides a state prediction with its variance. | |
double | getPosPred () |
Provides a state prediction. | |
double | getPosVar () |
Provides the variance of the state prediction. | |
Private Attributes | |
double | x1 |
double | cov11 |
> position | |
double | x1Pred |
> variance position | |
double | cov11Pred |
> position prediction |
void jafar::lines::ConstPositionKF::updateKF | ( | double | y, |
double | sigmaY, | ||
double | sigmaV | ||
) |
Updates the Kalman Filter and updates the prediction for the next step (see getPred())
y | is the new measurement for the position |
sigmaY | is the variance of the measurement |
sigmaV | is the process noise and weights the old measurements |
Generated on Wed Oct 15 2014 00:37:42 for Jafar by doxygen 1.7.6.1 |