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.
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.