accumulator
This module accumulates statistical values to analyze its mean, standard deviation and moments.
- class accumulator.Accumulator(num_moments=3, values=None)[source]
Accumulate values.
- mean()[source]
Return the mean.
>>> from pyfeasst import accumulator >>> acc = accumulator.Accumulator() >>> acc.add(1.) >>> acc.add(2.) >>> acc.add(4.) >>> acc.add([3, 5, 7]) >>> round(float(acc.mean()), 6) 3.666667