Keep Average (List) (vuo.math.keep.average.list)

Calculates the average (mean) of the values received by this node so far.

The 1st item in Averages is the average of the current 1st item in Values and the 1st item in previous Values lists; the 2nd item in Averages corresponds to the 2nd item in Values; and so on.

If an event hits both Values and Reset, then the history is reset before the average is recalculated. In other words, the node outputs Values.

If you increase Lookback from A to B while the composition is running, then the next event to Values will calculate the average based on Values and the previous A values in its history.

For point types, this node averages each component (X, Y, Z, W) of the points separately.

Thanks to Karl Henkel for developing the node this is based on.

Keywords: Kalman filter, SMA, calm, combine, continuous, history, hold, mean, middle, midpoint, mix, moving, preserve, recent, retain, rolling, sample, smooth, steady, store

Example composition:

Back to vuo.math node set documentation.