functionkfStepMatrices2
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)] | C | Output matrix of the discrete system | |
| Real[size(A, 1),size(A, 1)] | P | State covariance matrix of the previous instant | |
| Real[size(A, 1),size(A, 1)] | 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 | Kalman filter gain matrix | |
| Real[size(A, 1),size(A, 1)] | P_new | Updated state covariance matrix |