•
|
The Kalman command designs the Kalman estimator for a given system and process and measurement noise covariance matrices.
|
•
|
The system sys is a continuous or discrete-time linear system object created using the DynamicSystems package. The system object must be in state-space (SS) form.
|
•
|
If sys contains structural uncontrollable or unobservable states, they are removed using ReduceSystem before computing the Kalman gains. The resulting Kalman gains are then filled with zeros at positions corresponding to the removed states.
|
•
|
Continuous-Time Kalman Estimator (Filter)
|
Given the continuous-time system
with known (deterministic) inputs , white process noise , and white measurement noise , satisfying
(process noise has zero mean value)
(measurement noise has zero mean value)
where is the mathematical expectation of , the Kalman filter provides an optimal state estimation that minimizes the steady state error covariance
.
The Kalman filter equations are given as
.
The gain matrix is calculated as
where is the solution of the corresponding algebraic Riccati equation and
.
•
|
Discrete-Time Kalman Estimator (Filter)
|
Given the discrete-time system
and the noise covariance data
the Kalman filter provides an optimal state estimation that minimizes the steady state error covariance
.
The discrete Kalman filter state equation is given as
The gain matrix is calculated as
where is the solution of the corresponding algebraic Riccati equation and and are as defined before.
–
|
The output equation structure depends on the type of the filter specified in the option filtertype:
|
–
|
The current estimator uses all available measurements up to and generates state estimates and output estimates . The updated estimates are obtained from the prediction using the latest measurement as
|
.
is called the innovation signal which (under Kalman optimality conditions) is white.
The innovation gain, , is given as
.
The output equation is given as
.
–
|
The delayed estimator uses measurements up to and generates state estimates and output estimates .
|
The output equation is given as
.