@@ -161,6 +161,7 @@ Construct the estimator from the augmented covariance matrices `Q̂` and `R̂`.
161161This syntax allows nonzero off-diagonal elements in ``\m athbf{Q̂, R̂}``.
162162"""
163163function SteadyKalmanFilter (model:: SM , i_ym, nint_u, nint_ym, Q̂, R̂) where {NT<: Real , SM<: LinModel{NT} }
164+ Q̂, R̂ = to_mat (Q̂), to_mat (R̂)
164165 return SteadyKalmanFilter {NT, SM} (model, i_ym, nint_u, nint_ym, Q̂ , R̂)
165166end
166167
@@ -302,6 +303,7 @@ Construct the estimator from the augmented covariance matrices `P̂0`, `Q̂` and
302303This syntax allows nonzero off-diagonal elements in ``\m athbf{P̂}_{-1}(0), \m athbf{Q̂, R̂}``.
303304"""
304305function KalmanFilter (model:: SM , i_ym, nint_u, nint_ym, P̂0, Q̂, R̂) where {NT<: Real , SM<: LinModel{NT} }
306+ P̂0, Q̂, R̂ = to_mat (P̂0), to_mat (Q̂), to_mat (R̂)
305307 return KalmanFilter {NT, SM} (model, i_ym, nint_u, nint_ym, P̂0, Q̂ , R̂)
306308end
307309
@@ -473,6 +475,7 @@ This syntax allows nonzero off-diagonal elements in ``\mathbf{P̂}_{-1}(0), \mat
473475function UnscentedKalmanFilter (
474476 model:: SM , i_ym, nint_u, nint_ym, P̂0, Q̂, R̂, α, β, κ
475477) where {NT<: Real , SM<: SimModel{NT} }
478+ P̂0, Q̂, R̂ = to_mat (P̂0), to_mat (Q̂), to_mat (R̂)
476479 return UnscentedKalmanFilter {NT, SM} (model, i_ym, nint_u, nint_ym, P̂0, Q̂ , R̂, α, β, κ)
477480end
478481
@@ -694,6 +697,7 @@ Construct the estimator from the augmented covariance matrices `P̂0`, `Q̂` and
694697This syntax allows nonzero off-diagonal elements in ``\m athbf{P̂}_{-1}(0), \m athbf{Q̂, R̂}``.
695698"""
696699function ExtendedKalmanFilter (model:: SM , i_ym, nint_u, nint_ym,P̂0, Q̂, R̂) where {NT<: Real , SM<: SimModel{NT} }
700+ P̂0, Q̂, R̂ = to_mat (P̂0), to_mat (Q̂), to_mat (R̂)
697701 return ExtendedKalmanFilter {NT, SM} (model, i_ym, nint_u, nint_ym, P̂0, Q̂ , R̂)
698702end
699703
0 commit comments