interpolate function

Requirements.ChecksInFixedWindow_withFFT.Internal.interpolate  · source

Icon of interpolate

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

DateDescription
Nov. 29, 2015Initial 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, 2026Unused protected variable k removed (shadowed by the for-loop index) (H. Tummescheit, Model Based Innovation LLC)

Inputs

NameTypeDescription
polygon[…] inputRealPolygon [abscissa, ordinate] with increasing abscissa values
u[…] inputRealEvaluate polygon at u

Outputs

NameTypeDescription
y[…] outputRealInterpolated value