Add hybrid algorithm for accumulators
jmh530 opened this issue · 4 comments
jmh530 commented
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.
jmh530 commented
Need to fix up for SkewnessAccumulator/KurtosisAccumulator with twoPass/threePass to handle any range as well.
jmh530 commented
And fixup how they handle isPopulation to be consistent with VarianceAccumulator
jmh530 commented
There are also likely some extra const
s that can get removed.