TPiecePoly Class

Header: Dew.Math/Polynoms.h · Cross-compiler
tObjectTPiecePoly

class TPiecePoly : public tObject;

Manages piece-wise polynomials.

Use this object to construct and evaluate piece-wise polynomials. Key properties of the object can initialized by interpolation routines: Polynoms::Spline1D and Polynoms::Linear1D Additional properties like TPiecePoly::BreaksOffset,TPiecePoly::BreaksStep, TPiecePoly::BreaksEquidistant and TPiecePoly::ValuesSorted must be set manually. Setting these properties can significantly improve the performance.

Note
All vector and matrices, used in this class must be real.

Constructors

NameDescription
TPiecePoly

Destructors

NameDescription
~TPiecePoly

Properties

NameTypeDescription
BreaksTVec*Stores the piece-wise polynomial breaks.
BreaksEquidistantboolIf True all breaks will be assumed to be spaced at equal intervals.
BreaksOffsetdoubleDefines the offset from zero of the first break.
BreaksStepdoubleDefines the step between the Breaks.
CoefficientsTMtx*Stores the coefficients of the piece-wise polynomial.
OrderintReturns the order of the piece-wise interpolation.
PiecesintReturns the number of piece-wise polynomial pieces.
ValuesSortedboolDefines if X Values are sorted.

Methods

NameDescription
Evaluate (3)Evaluate piece-wise polynomial.
SetCoefficients