Moving Window
3 min
the moving window processors calculate a statistic, such as the average, maximum, or minimum, over a sliding window of a single input's values why use the moving window processors use one of the moving window processors when you need a continuously updating statistic over the most recent values of a single input, rather than a one time calculation across a fixed range how it works choose the processor that matches the statistic you need moving average calculates the average of the input's values within the window moving maximum returns the maximum value within the window moving minimum returns the minimum value within the window connect the input to the processor using an events connection, and connect the processor to the output using an events connection as well by default, the processor operates on each input's value field use field name only if your input uses a message type payload or a field name other than value , for example deviceid or success parameters parameter details processing type the data type of the value being processed float , signed integer , or unsigned integer window size the window (in seconds) over which the processor calculates its statistic field name the field the processor operates on leave this unchanged unless your input is a message type payload or uses a field name other than value related topics use the moving window processor function docid 1qnzugpjluojfmnz1j ws