interpolate function
Requirements.ChecksInFixedWindow_withFFT.Internal.interpolate
· source
Interpolate polygon (abscissa values must be within polygon values)
Extends Modelica.Icons.Function
Linear interpolation of the polygon polygon[:,2] (columns abscissa and ordinate) at the
abscissa values u. The abscissa values of the polygon must be strictly increasing, and
u must be increasing and lie within the first and last abscissa value of the polygon; both
conditions are checked with assert. Since u is increasing, the search for
the interval of u[i] starts at the interval found for u[i-1].
Used by checkDomain to evaluate the limit curve at the FFT frequency points.
Revisions
| Date | Description |
|---|---|
| Nov. 29, 2015 | Initial version implemented by
Martin R. Kuhn and Martin Otter
(DLR Institute of System Dynamics and Control) The research leading to these results has received funding from the European Union’s Seventh Framework Programme (FP7/2007-2016) for the Clean Sky Joint Technology Initiative under grant agreement no. CSJU-GAM-SGO-2008-001. |
| Dec. 3, 2026 | Unused protected variable k removed (shadowed by the for-loop index) (H. Tummescheit, Model Based Innovation LLC) |
Inputs
| Name | Type | Description |
|---|---|---|
polygon[…] input | Real | Polygon [abscissa, ordinate] with increasing abscissa values |
u[…] input | Real | Evaluate polygon at u |
Outputs
| Name | Type | Description |
|---|---|---|
y[…] output | Real | Interpolated value |