Skip to content

bug in docs of boost::math::statistics::first_four_moments #1420

Description

Docs of boost::math::statistics::first_four_moments() incorrectly says

Simultaneously computes the first four central moments in a single pass through the data:

(bold face by me).

It should say:

Simultaneously computes, in a single pass through the data, the tuple consisting of [mean, M2,M3,M4], where Mi are central moments :

The mean is the first non-central moment.

Please note, that I do like this library -- and this docs is really confusing: First central moment is always zero (i.e. the difference mean-mean).

And yes, I checked that first element in the tuple is the mean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions