Polynoms::Spline1D Function

Overload List

#SignatureDescription
1void Spline1D(TVec *X, TVec *Y, TPiecePoly *PiecePoly);Cubic spline interpolation.
2void Spline1D(TVec *Y, TPiecePoly *PiecePoly, bool Knots = false);Interpolates cubic splines between consecutive Y points.

Overload 1: void Spline1D(TVec *X, TVec *Y, TPiecePoly *PiecePoly);

Cubic spline interpolation.

#NameTypeDescription
1XTVec *
2YTVec *
3PiecePolyTPiecePoly *
Remarks:

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 Polynoms::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.

Declared in Dew::Math::Units::Polynoms · Dew.Math/Units.Polynoms.h · Cross-compiler

Overload 2: void Spline1D(TVec *Y, TPiecePoly *PiecePoly, bool Knots = false);

Interpolates cubic splines between consecutive Y points.

#NameTypeDescription
1YTVec *
2PiecePolyTPiecePoly *
3Knots = falsebool
Remarks:

Interpolates cubic splines between consecutive Y points. The assumption is that Y is evaluated at [0,1,2,...] -> X values are [0,1,2,...]. If the Knot parameter is true then the first and the last Y value will be used for the end conditions. In this case Y.Length = X.Length + 2.

See Also: Polynoms::Interpolate, Polynoms::Linear1D, Polynoms::PolyFit, TPiecePoly
Declared in Dew::Math::Units::Polynoms · Dew.Math/Units.Polynoms.h · Cross-compiler