Successive Differences for Time
Series
successiveDifferences()
Derive a new time series from the difference between successive values in the current regular or irregular interval time series data set. The current data must be of type “INST-VAL” or “INST-CUM.” A value in the resultant time series is set to missing if either the current or previous value in the current time series is missing (need to have two consecutive valid values). If the data type of the current data set is “INST-CUM” the resultant time series data set is assigned the type "PER-CUM”, otherwise the data type does not change.
See also: timeDirivative()
Parameters: Takes no parameters
Example: newTsData = tsData.successiveDifferences()
Returns: A new TimeSeriesMath object.
Generated Exceptions: Throws a HecMathException if the current data set is not of type "INST-VAL" or "INST-CUM.”