Kalman Smoother
StateSpace.kalman_smoother!
— Functionkalman_smoother!(smoother, filter, sys)
Compute smoothed states $α$ and corresponding variances $V$ for a linear Gaussian State Space model with system matrices sys
and Kalman filter output filter
, storing the result in smoother
.
Arguments
filter::KalmanFilter
: Kalman filter outputsys::StateSpaceSystem
: state space system matrices
Returns
smoother::Smoother
: Kalman smoother output
StateSpace.kalman_smoother_cov!
— Functionkalman_smoother_cov!(smoother, filter, sys; h=1)
Compute smoothed states $α$ and corresponding variances $V$ and autocovariances $V(h)$ up until lag h
for a linear Gaussian State Space model with system matrices sys
and Kalman filter output filter
, storing the results in smoother
.
Arguments
filter::KalmanFilter
: Kalman filter outputsys::StateSpaceSystem
: state space system matricesh::Integer
: lag length
Returns
smoother::Smoother
: Kalman smoother output