TPiecePoly Class

Source: Polynoms.cs · Assembly: Dew.Math

public class TPiecePoly

Manages piece-wise polynomials.

Use this object to construct and evaluate piece-wise polynomials. Key properties of the object can initialized by interpolation routines: Dew.Math.Units.Polynoms.Spline1D and Dew.Math.Units.Polynoms.Linear1D Additional properties like Dew.Math.TPiecePoly.BreaksOffset,Dew.Math.TPiecePoly.BreaksStep, Dew.Math.TPiecePoly.BreaksEquidistant and Dew.Math.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.

Properties

NameTypeDescription
BreaksTVecStores the piece-wise polynomial breaks.
BreaksEquidistantBooleanIf 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.
CoefficientsTMtxStores the coefficients of the piece-wise polynomial.
OrderInt32Returns the order of the piece-wise interpolation.
PiecesInt32Returns the number of piece-wise polynomial pieces.
ValuesSortedBooleanDefines if X Values are sorted.

Methods

NameDescription
Evaluate (3)Evaluate piece-wise polynomial.