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

Linear interpolation.

Pascal
procedure Linear1D(X: TVec; Y: TVec; PiecePoly: TPiecePoly); overload;

The Linear1D procedure interpolates lines between consecutive (X,Y) pairs. Linear1D does not return interpolated points. It constructs piece-wise polynomial, which can be used to evaluate ( by using the PiecePoly.Evaluate method) the linear functions. To directly obtain interpolated values, use the Interpolate routine.

X values must be monotonic or the result will not be valid.

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