delay

Input Stack:
n: Int
TimeSeriesExpr
Output Stack:
TimeSeriesExpr
 

Delays the values by the window size. This is similar to the :offset operator except that it can be applied to any input line instead of just changing the time window fetched with a DataExpr. Short delays can be useful for alerting to detect changes in slightly shifted trend lines.

Since: 1.6

BeforeAfterCombined
name,requestsPerSecond,:eq,
:sum
name,requestsPerSecond,:eq,
:sum,
5,:delay
name,requestsPerSecond,:eq,
:sum,
:dup,
5,:delay