Skip to content

Commit

Permalink
doc: debug doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
franckgaga committed Aug 7, 2024
1 parent 9ecb633 commit b5525c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/estimator/execute.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ julia> u = [1]; y = [3 - 0.1]; x̂ = round.(initstate!(estim, u, y), digits=3)
0.0
-0.1
julia> preparestate!(estim, y);
julia> x̂ ≈ updatestate!(estim, u, y)
true
Expand Down
4 changes: 3 additions & 1 deletion src/estimator/mhe/execute.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ dictionary `info` with the following fields:
# Examples
```jldoctest
julia> estim = MovingHorizonEstimator(LinModel(ss(1.0, 1.0, 1.0, 0, 1)), He=1, nint_ym=0);
julia> model = LinModel(ss(1.0, 1.0, 1.0, 0, 5.0));
julia> estim = MovingHorizonEstimator(model, He=1, nint_ym=0, direct=false);
julia> updatestate!(estim, [0], [1]);
Expand Down

0 comments on commit b5525c9

Please sign in to comment.