Skip to content

Refactor and DRY up Kahan Sum algorithm #48469

@not-napoleon

Description

@not-napoleon

We use the Kahan summation algorithm in several places in aggregations, and while it's not that complicated of an algorithm, each repetition is still a chance to make a subtle error. Most, if not all, of our usages could just call a common function (GeoCentroidAggregator might be the exception, since it runs a latitude and a longitude sum in parallel). We should refactor the common case into one place and just call it as needed.

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