Skip to content
Interpolation.md

Interpolation

Usage

Interpolation(interpolator=dataset_interpolation(interpolation_type, dataset))

Parameters:

NameDescriptionUnitsDefault value
dataset
interpolation_type
interpolatordataset_interpolation(interpolation_type, dataset)

Connectors

  • u - This connector represents a real signal as an input to a component (RealInput)

  • y - This connector represents a real signal as an output from a component (RealOutput)

Behavior

julia
dataset::DyadDataset = DyadDataset(hcat(0:0.1:1, square(0:0.1:1)), dependent_vars=["data"], independent_var="ts")
y(t)=interpolator(u(t))

Source

dyad
component Interpolation
  u = RealInput()
  y = RealOutput()
  structural parameter dataset::DyadDataset
  structural parameter interpolation_type::Real
  parameter interpolator::RealInterpolator = dataset_interpolation(interpolation_type, dataset)
relations
  y = interpolator(u)
end
Flattened Source
component Interpolation
  u = RealInput()
  y = RealOutput()
  structural parameter dataset::DyadDataset
  structural parameter interpolation_type::Real
  parameter interpolator::RealInterpolator = dataset_interpolation(interpolation_type, dataset)
relations
  y = interpolator(u)
metadata {}
end

Test Cases