Polynoms::Linear1D Function

Overload List

#SignatureDescription
1void Linear1D(TVec *X, TVec *Y, TPiecePoly *PiecePoly);Linear interpolation.
2void Linear1D(TVec *Y, TPiecePoly *PiecePoly);Perform interpolation assuming that Y is evaluated at [0,1,2,...].

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

Linear interpolation.

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

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

Note:
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 Linear1D(TVec *Y, TPiecePoly *PiecePoly);

Perform interpolation assuming that Y is evaluated at [0,1,2,...].

#NameTypeDescription
1YTVec *
2PiecePolyTPiecePoly *
See Also: Polynoms::Interpolate, Polynoms::Spline1D, Polynoms::PolyFit, TPiecePoly
Declared in Dew::Math::Units::Polynoms · Dew.Math/Units.Polynoms.h · Cross-compiler