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

Cubic spline interpolation.

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

The procedure interpolates cubic splines between consequtive (X,Y) pairs. The rotine does not return interpolated points. It constructs piece-wise polynomial, which in term can be used for evaluating (by using the TPiecePoly.Evaluate method) cubic splines. To directly obtain interpolated values, use the Interpolate routine.

If X.Length=Y.Length, then the "not-a-knot" end conditions are used. If Y.Length = X.Length +2 then the "knot" end conditions are used. 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!