Skip to content
ParameterizedInterpolation.md

ParameterizedInterpolation

Performs interpolation of values based on an input signal using externally defined parameters.

Implements a flexible interpolation function that maps the input value to an output value based on predefined interpolation parameters. The exact interpolation algorithm and parameters are defined externally to this component. This is commonly used for lookup tables, curve fitting, and approximating complex nonlinear relationships between variables.

Usage

BlockComponents.ParameterizedInterpolation(data, independent_var)

Parameters:

NameDescriptionUnitsDefault value
interpolation_type
extrapolation_typeExtrapolationType.None()
dataset
data
independent_var

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

Behavior of this component cannot be rendered because it includes path variables.

Source

dyad
"""
Performs interpolation of values based on an input signal using externally defined parameters.

Implements a flexible interpolation function that maps the input value to an output value based
on predefined interpolation parameters. The exact interpolation algorithm and parameters are
defined externally to this component. This is commonly used for lookup tables, curve fitting,
and approximating complex nonlinear relationships between variables.
"""
external component ParameterizedInterpolation
  "Input value to be interpolated"
  u = RealInput() {
    "Dyad": {
      "placement": {"icon": {"iconName": "input", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }
  "Interpolated output value"
  y = RealOutput() {
    "Dyad": {
      "placement": {"icon": {"iconName": "output", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }
  structural parameter interpolation_type::InterpolationType
  structural parameter extrapolation_type::ExtrapolationType = ExtrapolationType.None()
  structural parameter dataset::DyadData.DyadTimeseries
  parameter data::Real[:]
  parameter independent_var::Real[:]
relations
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Interpolation.svg"},
    "doc": {"behavior": false}
  }
}
end
Flattened Source
dyad
"""
Performs interpolation of values based on an input signal using externally defined parameters.

Implements a flexible interpolation function that maps the input value to an output value based
on predefined interpolation parameters. The exact interpolation algorithm and parameters are
defined externally to this component. This is commonly used for lookup tables, curve fitting,
and approximating complex nonlinear relationships between variables.
"""
external component ParameterizedInterpolation
  "Input value to be interpolated"
  u = RealInput() {
    "Dyad": {
      "placement": {"icon": {"iconName": "input", "x1": -50, "y1": 450, "x2": 50, "y2": 550}}
    }
  }
  "Interpolated output value"
  y = RealOutput() {
    "Dyad": {
      "placement": {"icon": {"iconName": "output", "x1": 950, "y1": 450, "x2": 1050, "y2": 550}}
    }
  }
  structural parameter interpolation_type::InterpolationType
  structural parameter extrapolation_type::ExtrapolationType = ExtrapolationType.None()
  structural parameter dataset::DyadData.DyadTimeseries
  parameter data::Real[:]
  parameter independent_var::Real[:]
relations
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Interpolation.svg"},
    "doc": {"behavior": false}
  }
}
end


Test Cases

No test cases defined.

  • Examples

  • Experiments

  • Analyses