ISmFisherDistribution.D2

Fore Syntax

D2: Integer;

Fore.NET Syntax

D2: integer;

Description

The D2 property determines the second power of distribution freedom.

Comments

Property value must meet the following restriction: D2 ≥ 1.

Fore Example

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

Sub UserProc;
Var
    Distrib: ISmStudentDistribution;
    Values: Array Of Double;
    i: Integer;
Const
    Cnt = 10;
Begin
    Distrib := New SmStudentDistribution.Create;
    Distrib.D := 3;
    Values := Distrib.RandomVector(Cnt);
    For i := 0 To Cnt - 1 Do
        Debug.WriteLine(Values[i]);
    End For;
End Sub UserProc;

After executing the example console window shows a sample of pseudo-random values from Fisher distribution with two specified degrees of freedom.

Fore.NET Example

Imports Prognoz.Platform.Interop.Stat;

Public Shared Sub Main(Params: StartParams);
Var
    Distrib: ISmFisherDistribution;
    Values: System.Array;
    i: Integer;
    Cnt: Integer = 10;
Begin
    Distrib := New SmFisherDistribution.Create();
    Distrib.D1 := 1;
    Distrib.D2 := 2;
    Values := Distrib.RandomVector(Cnt);
    For i := 0 To Cnt - 1 Do
        System.Diagnostics.Debug.WriteLine(Values[i]);
    End For;
End Sub;

After executing the example console window shows a sample of pseudo-random values from Fisher distribution with two specified degrees of freedom.

See also:

ISmFisherDistribution