You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Units Namespace > Classes > Polynoms Class > Polynoms Methods > Spline1D Method > Polynoms.Spline1D Method (TVec, TVec, TPiecePoly)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Polynoms.Spline1D Method (TVec, TVec, TPiecePoly)

Cubic spline interpolation.

Syntax
C#
Visual Basic
public static void Spline1D(TVec X, TVec Y, TPiecePoly PiecePoly);

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. 

Note 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-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!