@@ -1174,7 +1174,7 @@ end
11741174function init_estimate_cov! (
11751175 estim:: Union{KalmanFilter, UnscentedKalmanFilter, ExtendedKalmanFilter} , _ , _ , _
11761176)
1177- estim. P̂ .= estim. P̂_0
1177+ estim. cov . P̂ .= estim. cov . P̂_0
11781178 return nothing
11791179end
11801180
@@ -1187,8 +1187,8 @@ Allows code reuse for [`KalmanFilter`](@ref), [`ExtendedKalmanFilterKalmanFilter
11871187See [`update_estimate_kf!`](@ref) for more information.
11881188"""
11891189function correct_estimate_kf! (estim:: Union{KalmanFilter, ExtendedKalmanFilter} , y0m, d0, Ĉm)
1190- R̂, K̂ = estim. R̂, estim. K̂
1191- x̂0, P̂ = estim. x̂0, estim. P̂
1190+ R̂, K̂ = estim. cov . R̂, estim. K̂
1191+ x̂0, P̂ = estim. x̂0, estim. cov . P̂
11921192 # in-place operations to reduce allocations:
11931193 P̂_Ĉmᵀ = K̂
11941194 mul! (P̂_Ĉmᵀ, P̂, Ĉm' )
@@ -1213,7 +1213,7 @@ function correct_estimate_kf!(estim::Union{KalmanFilter, ExtendedKalmanFilter},
12131213 end
12141214 P̂corr = estim. buffer. P̂
12151215 mul! (P̂corr, I_minus_K̂_Ĉm, P̂)
1216- estim. P̂ .= Hermitian (P̂corr, :L )
1216+ estim. cov . P̂ .= Hermitian (P̂corr, :L )
12171217 return nothing
12181218end
12191219
@@ -1227,8 +1227,8 @@ They predict the state `x̂` and covariance `P̂` with the same equations. See
12271227[`update_estimate`](@ref) methods for the equations.
12281228"""
12291229function predict_estimate_kf! (estim:: Union{KalmanFilter, ExtendedKalmanFilter} , u0, d0, Â)
1230- x̂0corr, P̂corr = estim. x̂0, estim. P̂
1231- Q̂ = estim. Q̂
1230+ x̂0corr, P̂corr = estim. x̂0, estim. cov . P̂
1231+ Q̂ = estim. cov . Q̂
12321232 x̂0next, û0, k0 = estim. buffer. x̂, estim. buffer. û, estim. buffer. k
12331233 # in-place operations to reduce allocations:
12341234 f̂! (x̂0next, û0, k0, estim, estim. model, x̂0corr, u0, d0)
@@ -1240,6 +1240,6 @@ function predict_estimate_kf!(estim::Union{KalmanFilter, ExtendedKalmanFilter},
12401240 P̂next .= Â_P̂corr_Âᵀ .+ Q̂
12411241 x̂0next .+ = estim. f̂op .- estim. x̂op
12421242 estim. x̂0 .= x̂0next
1243- estim. P̂ .= Hermitian (P̂next, :L )
1243+ estim. cov . P̂ .= Hermitian (P̂next, :L )
12441244 return nothing
12451245end
0 commit comments