blob: 72ae56ec412a6db60a21d3eefea788dc1556fc05 [file] [log] [blame]
Optimized the mean, variance, and stdev functions in the statistics module.
If the input is an iterator, it is consumed in a single pass rather than
eating memory by conversion to a list. The single pass algorithm is about
twice as fast as the previous two pass code.