accum
Additive accumulator
new accum([options])
Options
Name | Type | Default | Description |
---|---|---|---|
max | number | Specifies the maximum value for the accumulated output. | |
min | number | Specifies the minimum value for the accumulated output. | |
resetmode | enum | post | Specifies whether the count is reset before (pre) or after (post) the accumulation. |
Aliases
+=
plusequals
Methods
next(x, reset): out1
Arguments
Name | Type | Default | Description |
---|---|---|---|
x | number | ||
reset | number |
Returns
Name | Type | Description |
---|---|---|
out1 | number | The accumulated output |
reset(): out1
Returns
Name | Type | Description |
---|---|---|
out1 |