time-to-botec/js/node_modules/@stdlib/stats/incr/count/docs/repl.txt

28 lines
544 B
Plaintext
Raw Permalink Normal View History

{{alias}}()
Returns an accumulator function which incrementally updates a count.
If provided a value, the accumulator function returns an updated count. If
not provided a value, the accumulator function returns the current count.
Returns
-------
acc: Function
Accumulator function.
Examples
--------
> var accumulator = {{alias}}();
> var v = accumulator()
0
> v = accumulator( 2.0 )
1
> v = accumulator( -5.0 )
2
> v = accumulator()
2
See Also
--------