ISmCauchyDistribution.A

Syntax

A: Double;

Description

The A property determines the value of the shift parameter (median) of distribution.

Example

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

Sub UserProc;
Var
    Distrib: ISmCauchyDistribution;
    Values: Array Of Double;
    i: Integer;
    Cnt: Integer = 10;
Begin
    Distrib := New SmCauchyDistribution.Create;
    Distrib.A := -3;
    Distrib.B := 6;
    Values := Distrib.RandomVector(Cnt);
    For i := 0 To Cnt - 1 Do
        Debug.WriteLine(Values[i]);
    End For;
End Sub UserProc;

After executing the example the console window displays a sample of pseudo-random values from Cauchy distribution with selected location parameter (median) and scale parameter.

See also:

ISmCauchyDistribution