RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.MomentSkewKurtosis Function

Calculates the mean, variance, skew, and kurtosis.

Pascal
procedure MomentSkewKurtosis(const Data: array of Double; var M1: Extended; var M2: Extended; var M3: Extended; var M4: Extended; var Skew: Extended; var Kurtosis: Extended);
C++
MomentSkewKurtosis(const array of Double Data, Extended M1, Extended M2, Extended M3, Extended M4, Extended Skew, Extended Kurtosis);

Math

MomentSkewKurtosis calculates the core factors of statistical analysis: the first four moments plus the coefficients of skew and kurtosis.  

Data specifies the data to be analyzed. In C++, Data_Size is the index of the last element in the Data array (one less than the number of elements). M1, M2, M3 and M4 return the first four moments (M1 is the mean, M2 is the variance, and so on). Skew reflects symmetry of distribution. Kurtosis reflects flatness of distribution. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!