Skip to content

Panic/correctness issue in variance GroupsAccumulator #12616

@eejbyfeldt

Description

@eejbyfeldt

Describe the bug

When using the sample variance and there is no values in a group we will do a -1 on a 0 usize. This leads to wrong results in release mode and panic in debug.

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions