Scripting > Math Functions


Polynomial Transformation

polynomialTransformation(TimeSeriesMath tsData)

 

Compute a polynomial transformation of a regular or irregular interval time series data set, tsData, using the polynomial coefficients stored in the current paired data set.  Missing values in tsData remain missing in the resultant data set.

 

A new time series can be computed from an existing time series with the polynomial expression:

 

TS2 (t) = B1* TS1(t) + B2* TS1(t) 2 + ... + Bn* TS1(t) n

 

where Bn are the polynomial coefficients for term “n.”

 

Values for the polynomial coefficients are stored in the x-values of the current paired data set.  Before the above equation is applied, values in the input time series are adjusted by subtracting off the paired data “datum” value if defined.  The units label and parameter type for the resultant time series are copied from the current paired data set x-units and parameter type.

 

See also:  polynomialTransformationWithIntegral()

Parameters:

tsData – A regular or irregular interval time series data set.

Example: tsXform = pdCoef.polynomialTransformation(tsData)

Returns: A new TimeSeriesMath object.