@@ -197,15 +197,27 @@ end
197197augment_model (:: SimModel , _ , _ ) = nothing
198198
199199@doc raw """
200- default_nint(model::LinModel, i_ym)
200+ default_nint(model::LinModel, i_ym=1:model.ny )
201201
202202Get default integrator quantity per measured outputs `nint_ym` for [`LinModel`](@ref).
203203
204- By default, one integrator is added on each measured outputs. If ``\m athbf{Â, Ĉ}``
205- matrices of the augmented model becomes unobservable, the integrator is removed. This
206- approach works well for stable, integrating and unstable `model`.
204+ The measured output ``\m athbf{y^m}`` indices are specified by `i_ym` argument. By default,
205+ one integrator is added on each measured outputs. If ``\m athbf{Â, Ĉ}`` matrices of the
206+ augmented model becomes unobservable, the integrator is removed. This approach works well
207+ for stable, integrating and unstable `model` (see Examples).
208+
209+ # Examples
210+ ```jldoctest
211+ julia> model = LinModel(append(tf(3, [10, 1]), tf(2, [1, 0]), tf(4,[-5, 1])), 1.0);
212+
213+ julia> nint_ym = default_nint(model)
214+ 3-element Vector{Int64}:
215+ 1
216+ 0
217+ 1
218+ ```
207219"""
208- function default_nint (model:: LinModel , i_ym)
220+ function default_nint (model:: LinModel , i_ym:: IntRangeOrVector = 1 : model . ny )
209221 nint_ym = fill (0 , length (i_ym))
210222 for i in eachindex (i_ym)
211223 nint_ym[i] = 1
@@ -218,8 +230,12 @@ function default_nint(model::LinModel, i_ym)
218230 end
219231 return nint_ym
220232end
221- " One integrator per measured outputs by default if `model` is not a [`LinModel`](@ref)."
222- default_nint (:: SimModel , i_ym) = fill (1 , length (i_ym))
233+ """
234+ default_nint(model::SimModel, i_ym=1:model.ny)
235+
236+ One integrator on each measured output by default if `model` is not a [`LinModel`](@ref).
237+ """
238+ default_nint (:: SimModel , i_ym:: IntRangeOrVector = 1 : model. ny) = fill (1 , length (i_ym))
223239
224240@doc raw """
225241 f̂(estim::StateEstimator, x̂, u, d)
0 commit comments