average Average of a series of floats or ints.

The average object cacluates the average of a stream of numbers. The object can be configured to calculate values two different ways: running average, and using stored values.

Inlets & Arguments:
#
Name
Arg
Description
1
numbers
n/a
A float, int, or list. Messages:type 0/1, samples #, set #.

Standard Outlets:
#
Name Description
1
average The average of the numbers comming in the inlet.

Messages:

type
0 means use a running average, 1 means store values in a round robin fashion to use in the average calculation.

samples
The number of samples to use in the calculation. Maximum number is 1000.

set
set the average to be the given value.

bang
Reset the calculation.