Skip to content

mean vs welfordMean #10

@harendra-kumar

Description

@harendra-kumar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions