functionsr_kfStepMatrices

One step, i.e. prediction and update of a kalman filter iteration for discrete systems

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

Inputs

TypeNameDefaultDescription
Real[:,size(A, 1)]ATransition matrix of the discrete system
Real[:,size(A, 1)]COutput matrix of the discrete system
Real[size(A, 1),size(A, 1)]SCholesky factor of the state covariance matrix of the previous instant
Real[size(A, 1),:]wBWeighting matrix of the input noise covariance matrix of the previous instant
Real[size(wB, 2),size(wB, 2)]CqCholesky factor of input or process noise covariance matrix of the previous instant
Real[size(C, 1),size(C, 1)]CrCholesky factor or measurement noise covariance matrix of the previous instant

Outputs

TypeNameDefaultDescription
Real[size(A, 1),size(C, 1)]KKalman filter gain matrix
Real[size(A, 1),size(A, 1)]S_newUpdated state covariance matrix
Real[size(C, 1),size(C, 1)]Cr_newModified Cholesky output or measurement noise covariance matrix
Real[size(C, 1) + size(A, 1),2*size(C, 1) + size(A, 1)]M