Skip to content
ParameterizedInterpolation.md

ParameterizedInterpolation

Usage

ParameterizedInterpolation()

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
using BlockComponents #hide
using BlockComponents: square #hide
using ModelingToolkit #hide
using DyadData #hide
using DataInterpolations #hide
dataset::DyadDataset = DyadDataset(hcat(0:0.1:1, square(0:0.1:1)), dependent_vars=["data"], independent_var="ts")
@named sys = ParameterizedInterpolation(interpolation_type=LinearInterpolation, dataset=dataset) #hide
full_equations(sys) #hide

Source

dyad
external component ParameterizedInterpolation
  u = RealInput() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "input", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }]
  y = RealOutput() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "output", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }]
end
Flattened Source
external component ParameterizedInterpolation
  u = RealInput() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "input", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }]
  y = RealOutput() [{
    "Dyad": {
      "placement": {"icon": {"iconName": "output", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }]
metadata {}
end

Test Cases

  • Examples

  • Experiments

  • Analyses