Statistics::Moment Function

double Moment(TVec *X, double AMean, const int AOrder);

Moments.

#NameTypeDescription
1XTVec *Data. An exception is raised if X vector is complex.
2AMeandoubleA mean value of all X vector elements.
3AOrderconst intDefines the order of central moment.

Returns: the AOrder-th central moment of all X vector elements.

Declared in Dew::Stats::Units::Statistics · Dew.Stats/Units.Statistics.h · Cross-compiler