libmir/mir-stat

Add hybrid algorithm for accumulators

jmh530 opened this issue · 4 comments

The performance of the online algorithm can be bad compared to 2-3 pass algorithms when not parallelizing. Create hybrid algorithms that use pass algorithms when array/slice type and online otherwise.

Change defaults to these versions.

Need to fix up for SkewnessAccumulator/KurtosisAccumulator with twoPass/threePass to handle any range as well.

And fixup how they handle isPopulation to be consistent with VarianceAccumulator

There are also likely some extra consts that can get removed.

Addressed by #88 and #89