IStatistics.SkewDcml

Fore Syntax

SkewDcml(Values: Array): Decimal;

Fore.NET Syntax

SkewDcml(Values: System.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.

Fore 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.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Stat;

Public Shared Sub Main(Params: StartParams);
Var
    st: Statistics;
    a: Array[5Of object;
    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);
    System.Diagnostics.Debug.WriteLine("Skewness: " + s.ToString());
End Sub;

See also:

IStatistics