Scripting > Math Functions


Sign Function

sign()

 

Derive a new time series composed of the signs of the values of the current time series. Values which are missing in the original time series will be missing in the new time series.  Values in the current time series will be represented as -1.0, 0.0 or 1.0 in the derived time series, depending on whether the original value is < 0.0, 0.0 or > 0.0.

 

Parameters: Takes no Parameters

Example: newDataSet = dataSet.sign()

Returns: A new time series composed of the negatives of the values of the current time series