@@ -153,25 +153,25 @@ end
153153Update the augmented model state for estimation.
154154
155155By introducing an augmented state vector ``\m athbf{x}`` like in [`augment_model`](@ref) doc,
156- this ``\m athbf{f̂}`` method updates it with the augmented model :
156+ the ``\m athbf{f̂}`` method updates it from the augmented model, defined as :
157157```math
158158\b egin{aligned}
159159 \m athbf{x}(k+1) &= \m athbf{f̂}\B ig(\m athbf{x}(k), \m athbf{u}(k), \m athbf{d}(k)\B ig) \\
160160 \m athbf{y}(k) &= \m athbf{ĥ}\B ig(\m athbf{x}(k), \m athbf{d}(k)\B ig)
161161\e nd{aligned}
162162```
163163"""
164- function f̂ (estim:: StateEstimator , x̂, u, d)
164+ function f̂ (estim:: E , x̂, u, d) where {E <: StateEstimator }
165165 # TODO : consider using views : https://docs.julialang.org/en/v1/manual/performance-tips/#man-performance-views
166166 return [estim. model. f (x̂[1 : estim. model. nx], u, d); estim. As* x̂[estim. model. nx+ 1 : end ]]
167167end
168168
169- """
169+ @doc raw """
170170 ĥ(estim::StateEstimator, x̂, d)
171171
172- Calc the augmented model output for estimation , see [`f̂`](@ref) for details.
172+ Output function `` \m athbf{ĥ}`` of the augmented model , see [`f̂`](@ref) for details.
173173"""
174- function ĥ (estim:: StateEstimator , x̂, d)
174+ function ĥ (estim:: E , x̂, d) where {E <: StateEstimator }
175175 return estim. model. h (x̂[1 : estim. model. nx], d) + estim. Cs* x̂[estim. model. nx+ 1 : end ]
176176end
177177
0 commit comments