Calculates a moving rate of change for a set of time series data.
It is calculated as follows:
Rate of Change = (Current value - Value N period ago) / Value N period ago
roc(TimeSeries, Period)
Parameter | Description |
---|---|
TimeSeries | A node with time series data. |
Period | The number of data intervals considered in the function. |
roc(@TankSensor, 2): If the interval is set to daily, this expression will calculate the daily rate of change.