Skip to content

sum, stats and avg aggregations should use Kahan summation #27807

@jpountz

Description

@jpountz

Kahan summation gives better accuracy than naive summation. For instance when summing up N positive values, the relative error of Kahan summation is bound by 2^-52 while with naive summation, the error is linear with the number of values that are summed up.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions