average
Maintain a running average of incoming values
new average()
Methods
next(x, windowSize, reset): out1
Arguments
Name | Type | Default | Description |
---|---|---|---|
x | number | ||
windowSize | number | ||
reset | bool |
Returns
Name | Type | Description |
---|---|---|
out1 | number | The averaged output |
reset(): out1
Returns
Name | Type | Description |
---|---|---|
out1 |