ISmGammaDistribution.A

Syntax

A: Double;

Description

The A property determines the value of the shape parameter for gamma distribution of a random value.

Comments

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

Example

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

Sub UserProc;
Var
    Distrib: ISmGammaDistribution;
    Values: Array Of Double;
    i: Integer;
    Cnt: Integer = 10;
Begin
    Distrib := New SmGammaDistribution.Create;
    Distrib.A := 4;
    Distrib.B := 4;
    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 gamma distribution with selected scale and shape parameters.

See also:

ISmGammaDistribution