time-to-botec/squiggle/node_modules/@stdlib/stats/incr/nancount/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

29 lines
571 B
Plaintext

{{alias}}()
Returns an accumulator function which incrementally updates a count,
ignoring `NaN` values.
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
--------