A: Double;
The A property determines the value of α parameter of random value distribution.
Property value must meet the following condition: A > 0.
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.
See also: