Skip to content

Commit 17729e1

Browse files
committed
doc internals for ExtendedKalmanFilter
1 parent d75242e commit 17729e1

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/estimator/kalman.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,17 @@ end
632632
@doc raw"""
633633
update_estimate!(estim::ExtendedKalmanFilter, u, ym, d=Float64[])
634634
635-
TBW
635+
Update [`ExtendedKalmanFilter`](@ref) state `estim.x̂` and estimation error covariance `estim.P̂`.
636+
637+
The equations are identical to [`update_estimate!(::KalmanFilter)`](@ref) with the
638+
substitutions ``\mathbf{Â = F̂}(k)`` and ``\mathbf{Ĉ^m = Ĥ^m}(k)``, and the Jacobians:
639+
```math
640+
\begin{aligned}
641+
\mathbf{F̂}(k) &= \left. \frac{∂\mathbf{f̂}(\mathbf{x̂}, \mathbf{u}, \mathbf{d})}{∂\mathbf{x̂}} \right|_{\mathbf{x̂ = x̂}_{k-1}(k),\, \mathbf{u = u}(k),\, \mathbf{d = d}(k)} \\
642+
\mathbf{Ĥ}(k) &= \left. \frac{∂\mathbf{ĥ}(\mathbf{x̂}, \mathbf{d})}{∂\mathbf{x̂}} \right|_{\mathbf{x = x̂}_{k-1}(k),\, \mathbf{d = d}(k)}
643+
\end{aligned}
644+
```
645+
The matrix ``\mathbf{Ĥ^m}(k)`` is the rows of ``\mathbf{Ĥ}(k)`` that are measured outputs.
636646
"""
637647
function update_estimate!(estim::ExtendedKalmanFilter, u, ym, d=Float64[])
638648
x̂, P̂, Q̂, R̂ = estim.x̂, estim.P̂, estim.Q̂, estim.

src/estimator/luenberger.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ end
9595
"""
9696
update_estimate!(estim::Luenberger, u, ym, d=Float64[])
9797
98-
Same than [`SteadyKalmanFilter`](@ref) but using the [`Luenberger`](@ref) observer.
98+
Same than [`update_estimate!(::SteadyKalmanFilter)`](@ref) but using [`Luenberger`](@ref).
9999
"""
100100
function update_estimate!(estim::Luenberger, u, ym, d=Float64[])
101101
Â, B̂u, B̂d, Ĉm, D̂dm = estim.Â, estim.B̂u, estim.B̂d, estim.Ĉm, estim.D̂dm

0 commit comments

Comments
 (0)