IStatistics.SkewDcml

Syntax

SkewDcml(Values: Array): Decimal;

Parameters

Values. An array of decimal high-precision numbers, for which asymmetry is calculated.

Description

The SkewDcml method returns skewness of distribution for data of the Decimal type.

Comments

Asymmetry determines the degree of skewness and distribution relative to its average. Positive skewness indicates distribution deviation towards positive values. Negative skew indicates distribution deviation towards negative values.

To define numbers of the Decimal type in the array, it is necessary to write the "m" character after the value of each number. For example: 0.001m.

Example

To execute the example, add a link to the Stat system assembly.

Sub UserProc;
Var
    st: Statistics;
    a: Array[5Of Variant;
    s: Decimal;
Begin
    st := New Statistics.Create;
    a[0] := 0.85m;
    a[1] := 0.14m;
    a[2] := -0.53m;
    a[3] := 0.28m;
    a[4] := 0.31m;
    s:=st.SkewDcml(a);
    Debug.WriteLine("Skewness: " + s.ToString);
End Sub UserProc;

After executing the example the console window displays skewness.

See also:

IStatistics