@@ -733,7 +733,7 @@ function SampledData(; name, buffer, sample_time, circular_buffer)
733733end
734734
735735"""
736- InterpolationBlock (interp_type, u, x, args...; name, t = ModelingToolkit.t_nounits )
736+ Interpolation (interp_type, u, x, args...; name)
737737
738738Represent function interpolation symbolically as a block component.
739739By default interpolation types from [`DataInterpolations.jl`](https://github.com/SciML/DataInterpolations.jl) are supported,
@@ -749,7 +749,6 @@ such as `LinearInterpolation`, `ConstantInterpolation` or `CubicSpline`.
749749 - `args`: any other arguments beeded to build the interpolation
750750# Keyword arguments:
751751 - `name`: the name of the component
752- - `t`: the interpolation parameter, this is the time (`ModelingToolkit.t_nounits`) by default
753752
754753# Parameters:
755754 - `interpolator`: the symbolic
@@ -758,12 +757,12 @@ such as `LinearInterpolation`, `ConstantInterpolation` or `CubicSpline`.
758757# Connectors:
759758 - `output`: a [`RealOutput`](@ref) connector corresponding to the interpolated value
760759"""
761- function InterpolationBlock (interp_type, u, x, args... ; name, t = ModelingToolkit . t_nounits )
760+ function Interpolation (interp_type, u, x, args... ; name)
762761 itp = interp_type (u, x, args... )
763762 InterpolationBlock (itp; name, t)
764763end
765764
766- function InterpolationBlock (itp; name, t = ModelingToolkit . t_nounits )
765+ function Interpolation (itp; name)
767766 @parameters (interpolator:: typeof (itp))(.. ) = itp
768767
769768 @named output = RealOutput ()
@@ -825,7 +824,7 @@ Base.nameof(::CachedInterpolation) = :CachedInterpolation
825824@register_symbolic (f:: CachedInterpolation )(u:: AbstractArray , x:: AbstractArray , args:: Tuple )
826825
827826"""
828- ParametrizedInterpolationBlock (interp_type, u, x, args...; name, t = ModelingToolkit.t_nounits)
827+ ParametrizedInterpolation (interp_type, u, x, args...; name, t = ModelingToolkit.t_nounits)
829828
830829Represent function interpolation symbolically as a block component, with the interpolation data represented parametrically.
831830By default interpolation types from [`DataInterpolations.jl`](https://github.com/SciML/DataInterpolations.jl) are supported,
@@ -851,7 +850,7 @@ such as `LinearInterpolation`, `ConstantInterpolation` or `CubicSpline`.
851850# Connectors:
852851 - `output`: a [`RealOutput`](@ref) connector corresponding to the interpolated value
853852"""
854- function ParametrizedInterpolationBlock (
853+ function ParametrizedInterpolation (
855854 interp_type:: T , u:: AbstractVector , x:: AbstractVector , args... ;
856855 name, t = ModelingToolkit. t_nounits) where {T}
857856
0 commit comments