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

Cubic spline interpolation.

C#
public 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.

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.

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