Scripting > Math Functions

 
Exponentiation Timeseries Function

exponentiation(HecMath tsMath)

 

Raise values in the current time series to the power of the parameter time series, tsMath.  A new time series will be created which duplicates the time points of the current time series.  Where time points match for the current time series and tsMath, the value in the current timeseries will be raised to the power of the value in tsMath provided both values are valid (not missing).  Points in the current time series which cannot be matched to valid points in tsMath are set to missing.  Values in the current time series which are missing remain missing in the new time series.The new time series will always have quality defined.  If a specific quality value in the parameter time series is questionable or rejected, that quality will be copied to the new time series.

 

Parameters:

tsMath  the time series of exponents for the current time series.

Example: squaredDataSet = dataset.exponentiation(HecMath tsMath)

Returns: a new time series resulting from the subtraction operation.

 

Derive a new time series or paired data set from the exponentiation of values in the current data set by constant, by:

 

T2 (i) = T1(i)constant

 

For time series data, values that are missing in the current time series remain missing in the new time series.

For paired data sets, use the setCurve method to first select the paired data curve(s).