ISmBetaDistribution.A

Fore Syntax

A: Double;

Fore.NET Syntax

A: double;

Description

The A property determines the value of α parameter of random value distribution.

Comments

Property value must meet the following condition: A > 0.

Fore Example

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

Sub UserProc;
Var
    Distrib: ISmBetaDistribution;
    Values: Array Of Double;
    i: Integer;
    Cnt: Integer = 10;
Begin
    Distrib := New SmBetaDistribution.Create;
    Distrib.A := 1.5;
    Distrib.B := 2.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 displays a sample of pseudo-random values from beta distribution with selected parameters.

Fore.NET Example

Imports Prognoz.Platform.Interop.Stat;

Public Shared Sub Main(Params: StartParams);
Var
    Distrib: ISmBetaDistribution;
    Values: System.Array;
    i: Integer;
    Cnt: Integer = 10;
Begin
    Distrib := New SmBetaDistribution.Create();
    Distrib.A := 1.5;
    Distrib.B := 2.3;
    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 displays a sample of pseudo-random values from beta distribution with selected parameters.

See also:

ISmBetaDistribution