Add tests to demonstrate the difference between mean and welfordMean. We can use alternate small and large numbers with a high dynamic range for testing the loss of precision. A Double has 52 significand bits and 10 exponent bits. We can design a test based on that knowledge. See https://en.wikipedia.org/wiki/Floating-point_arithmetic .
It would be nice to have sum operations that works on a wider range possibly by sacrificing some computational complexity e.g. multiple buckets for different precision levels.
Add tests to demonstrate the difference between
meanandwelfordMean. We can use alternate small and large numbers with a high dynamic range for testing the loss of precision. ADoublehas 52 significand bits and 10 exponent bits. We can design a test based on that knowledge. See https://en.wikipedia.org/wiki/Floating-point_arithmetic .It would be nice to have
sumoperations that works on a wider range possibly by sacrificing some computational complexity e.g. multiple buckets for different precision levels.