Codebox Operators average

average

Maintain a running average of incoming values

new average()

Methods

next(x, windowSize, reset): out1

Arguments

NameTypeDefaultDescription
xnumber
windowSizenumber
resetbool

Returns

NameTypeDescription
out1number

The averaged output

reset(): out1

Returns

NameTypeDescription
out1