You are here: Symbol Reference > Polynoms Namespace > Functions > Polynoms.Interpolate Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Polynoms.Interpolate Function

Perform linear or cubic interpolation.

Pascal
procedure Interpolate(X: TVec; Y: TVec; intX: TVec; IntY: TVec; IntType: TInterpolationType = IntCubic; IntXSorted: boolean = true); overload;

The routine interpolates IntY at IntX to the underlying function values, stored in Y. X.Length and Y.length properties must match or an exception will be raised. The IntType parameter defines the type of interpolation (linear, cubic). The intXSorted parameter defines whether intX values are sorted. If intX values are sorted the interpolation is much faster. 

Vector X stores the positions, where the function is evaluated. X values must be monotonic. The Length and Complex properties of the IntY vector are adjusted automatically.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!