functionUKF

Unscented Kalman filter design function

Extends from Modelica.Icons.Function (Icon for functions).

Information

Syntax

(x_est, y_est, P, K) = DiscreteStateSpace.Design.UKF(x_pre, u_pre, y, P_pre, Q, R, alpha, beta, kappa, Ts)

Description

Function UKF computes one recursion of the Unscented Kalman filter. Unscented Kalman filters are similar to Extended Kalman filters but using statistical linearization where extended Kalman filter apply the user-provided derivation of the system equation. Instead of explicit derivation linear regression between spcifically chosen sample points (sigma points). See [1] for more information.

See also UKF_SR, where the square root method to deal with positive definite matrices is applied to solve the mathematically identical problem.

References

 [1]
http://en.wikipedia.org/wiki/Kalman_filter#Unscented_Kalman_filter.
 

Inputs

TypeNameDefaultDescription
Real[:]xpreState at instant k-1
Real[:]upreInput at instant k-1
Real[:]yOutput at instant k
Real[size(xpre, 1),size(xpre, 1)]PpreError covariance matrix at instant k-1
Real[size(xpre, 1),size(xpre, 1)]Qidentity(size(xpre, 1))Weighted covariance matrix of the associated process noise (F*Q*F')
Real[size(y, 1),size(y, 1)]Ridentity(size(y, 1))Covariance matrix of the measurement noise
Realalpha0.1Spread of sigma points
Realbeta2Characteristic of the distribution of x
Realkappa0Kurtosis scaling of sigma point distribution
Modelica.Units.SI.TimeTsSample time

Outputs

TypeNameDefaultDescription
Real[size(xpre, 1)]x_estEstimated state vector
Real[size(y, 1)]y_estEstimated output
Real[size(Ppre, 1),size(Ppre, 1)]PError covariance matrix
Real[size(xpre, 1),size(y, 1)]KKalman filter gain matrix

Contents

NameDescription
predict
update
estimate

Revisions

Date Author Comment
2010-06-11 Marcus Baur, DLR-RM Realization