Download MetaTrader 5

MathSkewness

Calculates the skewness (third moment) of array elements. Analog of the skewness() in R (e1071 library).

double  MathSkewness(
   const double&  array[],               // array with data
   const int      start=0,               // initial index 
   const int      count=WHOLE_ARRAY      // the number of elements
   );

Parameters

array

[in]  Array with data for calculation.

start=0

[in]  Initial index for calculation.

count=WHOLE_ARRAY

[in]  The number of elements for calculation.

Return Value

Skewness of array elements. In case of error it returns NaN (not a number).


Updated: 2016.12.21