25 #define _USE_MATH_DEFINES
56 void InitSystem (
const mat& A,
const mat& B,
const mat& H,
const mat& Q,
const mat& R);
89 void Kalmanf(
const colvec& z,
const colvec& u);
Kalman filter implementation, for a linear system.
Definition: kf.h:37
colvec * GetCurrentState()
Get current simulated true state.
Definition: kf.cpp:110
void InitStateCovariance(const mat &P0)
Initialize the state covariance. Must be called after InitSystem. If not called, covariance state is ...
Definition: kf.cpp:65
void InitSystemState(const colvec &x0)
Initialize the system states. Must be called after InitSystem. If not, called, system states are init...
Definition: kf.cpp:58
colvec * GetCurrentEstimatedOutput()
Get current estimated output. This is the filtered measurements, with less noise.
Definition: kf.cpp:125
void InitSystem(const mat &A, const mat &B, const mat &H, const mat &Q, const mat &R)
Define the system.
Definition: kf.cpp:20
colvec * GetCurrentOutput()
Get current simulated true output. This is analogous to the measurements.
Definition: kf.cpp:115
colvec * GetCurrentEstimatedState()
Get current estimated state.
Definition: kf.cpp:120
KF()
Constructor, nothing happens here.
Definition: kf.cpp:10
void Kalmanf(const colvec &u)
Do Kalman filter iteration step-by-step while simulating the system. Simulating the system is done to...
Definition: kf.cpp:71
~KF()
Destructor, nothing happens here.
Definition: kf.cpp:15