@@ -27,7 +27,7 @@ struct SteadyKalmanFilter{NT<:Real, SM<:LinModel} <: StateEstimator{NT}
2727 direct:: Bool
2828 corrected:: Vector{Bool}
2929 buffer:: StateEstimatorBuffer{NT}
30- function SteadyKalmanFilter{NT, SM }(
30+ function SteadyKalmanFilter{NT}(
3131 model:: SM , i_ym, nint_u, nint_ym, Q̂, R̂; direct= true
3232 ) where {NT<: Real , SM<: LinModel }
3333 nu, ny, nd = model. nu, model. ny, model. nd
@@ -182,7 +182,7 @@ function SteadyKalmanFilter(
182182 # estimated covariances matrices (variance = σ²) :
183183 Q̂ = Hermitian(diagm(NT[σQ; σQint_u; σQint_ym ]. ^ 2 ), :L)
184184 R̂ = Hermitian(diagm(NT[σR;]. ^ 2 ), :L)
185- return SteadyKalmanFilter{NT, SM }(model, i_ym, nint_u, nint_ym, Q̂, R̂; direct)
185+ return SteadyKalmanFilter{NT}(model, i_ym, nint_u, nint_ym, Q̂, R̂; direct)
186186end
187187
188188@doc raw """
@@ -196,7 +196,7 @@ function SteadyKalmanFilter(
196196 model:: SM , i_ym, nint_u, nint_ym, Q̂, R̂; direct= true
197197) where {NT<: Real , SM<: LinModel{NT} }
198198 Q̂, R̂ = to_mat(Q̂), to_mat(R̂)
199- return SteadyKalmanFilter{NT, SM }(model, i_ym, nint_u, nint_ym, Q̂, R̂; direct)
199+ return SteadyKalmanFilter{NT}(model, i_ym, nint_u, nint_ym, Q̂, R̂; direct)
200200end
201201
202202" Throw an error if `setmodel!` is called on a SteadyKalmanFilter w/o the default values."
@@ -308,7 +308,7 @@ struct KalmanFilter{NT<:Real, SM<:LinModel} <: StateEstimator{NT}
308308 direct:: Bool
309309 corrected:: Vector{Bool}
310310 buffer:: StateEstimatorBuffer{NT}
311- function KalmanFilter{NT, SM }(
311+ function KalmanFilter{NT}(
312312 model:: SM , i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂; direct= true
313313 ) where {NT<: Real , SM<: LinModel }
314314 nu, ny, nd = model. nu, model. ny, model. nd
@@ -419,7 +419,7 @@ function KalmanFilter(
419419 P̂_0 = Hermitian(diagm(NT[σP_0; σPint_u_0; σPint_ym_0]. ^ 2 ), :L)
420420 Q̂ = Hermitian(diagm(NT[σQ; σQint_u; σQint_ym ]. ^ 2 ), :L)
421421 R̂ = Hermitian(diagm(NT[σR;]. ^ 2 ), :L)
422- return KalmanFilter{NT, SM }(model, i_ym, nint_u, nint_ym, P̂_0, Q̂ , R̂; direct)
422+ return KalmanFilter{NT}(model, i_ym, nint_u, nint_ym, P̂_0, Q̂ , R̂; direct)
423423end
424424
425425@doc raw """
@@ -433,7 +433,7 @@ function KalmanFilter(
433433 model:: SM , i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂; direct= true
434434) where {NT<: Real , SM<: LinModel{NT} }
435435 P̂_0, Q̂, R̂ = to_mat(P̂_0), to_mat(Q̂), to_mat(R̂)
436- return KalmanFilter{NT, SM }(model, i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂; direct)
436+ return KalmanFilter{NT}(model, i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂; direct)
437437end
438438
439439@doc raw """
@@ -530,7 +530,7 @@ struct UnscentedKalmanFilter{NT<:Real, SM<:SimModel} <: StateEstimator{NT}
530530 direct:: Bool
531531 corrected:: Vector{Bool}
532532 buffer:: StateEstimatorBuffer{NT}
533- function UnscentedKalmanFilter{NT, SM }(
533+ function UnscentedKalmanFilter{NT}(
534534 model:: SM , i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂, α, β, κ; direct= true
535535 ) where {NT<: Real , SM<: SimModel{NT} }
536536 nu, ny, nd = model. nu, model. ny, model. nd
@@ -681,7 +681,7 @@ function UnscentedKalmanFilter(
681681 P̂_0 = Hermitian(diagm(NT[σP_0; σPint_u_0; σPint_ym_0]. ^ 2 ), :L)
682682 Q̂ = Hermitian(diagm(NT[σQ; σQint_u; σQint_ym ]. ^ 2 ), :L)
683683 R̂ = Hermitian(diagm(NT[σR;]. ^ 2 ), :L)
684- return UnscentedKalmanFilter{NT, SM }(
684+ return UnscentedKalmanFilter{NT}(
685685 model, i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂, α, β, κ; direct
686686 )
687687end
@@ -699,7 +699,7 @@ function UnscentedKalmanFilter(
699699 model:: SM , i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂, α= 1e-3 , β= 2 , κ= 0 ; direct= true
700700) where {NT<: Real , SM<: SimModel{NT} }
701701 P̂_0, Q̂, R̂ = to_mat(P̂_0), to_mat(Q̂), to_mat(R̂)
702- return UnscentedKalmanFilter{NT, SM }(
702+ return UnscentedKalmanFilter{NT}(
703703 model, i_ym, nint_u, nint_ym, P̂_0, Q̂ , R̂, α, β, κ; direct
704704 )
705705end
@@ -905,7 +905,7 @@ struct ExtendedKalmanFilter{NT<:Real, SM<:SimModel} <: StateEstimator{NT}
905905 direct::Bool
906906 corrected::Vector{Bool}
907907 buffer::StateEstimatorBuffer{NT}
908- function ExtendedKalmanFilter{NT, SM }(
908+ function ExtendedKalmanFilter{NT}(
909909 model::SM, i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂; direct=true
910910 ) where {NT<:Real, SM<:SimModel}
911911 nu, ny, nd = model.nu, model.ny, model.nd
@@ -994,7 +994,7 @@ function ExtendedKalmanFilter(
994994 P̂_0 = Hermitian(diagm(NT[σP_0; σPint_u_0; σPint_ym_0].^2), :L)
995995 Q̂ = Hermitian(diagm(NT[σQ; σQint_u; σQint_ym ].^2), :L)
996996 R̂ = Hermitian(diagm(NT[σR;].^2), :L)
997- return ExtendedKalmanFilter{NT, SM }(model, i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂; direct)
997+ return ExtendedKalmanFilter{NT}(model, i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂; direct)
998998end
999999
10001000@doc raw"""
@@ -1008,7 +1008,7 @@ function ExtendedKalmanFilter(
10081008 model::SM, i_ym, nint_u, nint_ym,P̂_0, Q̂, R̂; direct=true
10091009) where {NT<:Real, SM<:SimModel{NT}}
10101010 P̂_0, Q̂, R̂ = to_mat(P̂_0), to_mat(Q̂), to_mat(R̂)
1011- return ExtendedKalmanFilter{NT, SM }(model, i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂; direct)
1011+ return ExtendedKalmanFilter{NT}(model, i_ym, nint_u, nint_ym, P̂_0, Q̂, R̂; direct)
10121012end
10131013
10141014"""
0 commit comments