functionkfStepMatrices
One step, i.e. prediction and update of a kalman filter iteration for discrete systems
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,size(A, 1)] | A | Transition matrix of the discrete system | |
| Real[size(A, 1),:] | B | Input matrix of the discrete system | |
| Real[:,size(A, 1)] | C | Output matrix of the discrete system | |
| Real[size(A, 1),size(A, 1)] | P | State covariance matrix of the previous instant | |
| Real[size(B, 2),size(B, 2)] | Q | Input or process noise covariance matrix of the previous instant | |
| Real[size(C, 1),size(C, 1)] | R | Output or measurement noise covariance matrix of the previous instant |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[size(A, 1),size(C, 1)] | K | P*transpose(C) | Kalman filter gain matrix |
| Real[size(A, 1),size(A, 1)] | P_new | Updated state covariance matrix | |
| Real[size(C, 1),size(C, 1)] | UMutri | Square root (left Cholesky factor) of the covariance matrix M | |
| Real[size(C, 1),size(C, 1)] | M | ||
| Real[size(A, 1),size(C, 1)] | PCT |