SkewDcml(Values: Array): Decimal;
Values. An array of decimal high-precision numbers, for which skewness is calculated.
The SkewDcml method returns skewness of distribution for data of the Decimal type.
Skewness determines the degree of skewness and distribution relative to its average. Positive skewness indicates distribution deviation towards positive values. Negative skewness 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.
To execute the example, add a link to the Stat system assembly.
Sub UserProc;
Var
st: Statistics;
a: Array[5] Of 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: