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) #hideSource
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}}
}
}]
endFlattened 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
Related
Examples
Experiments
Analyses