ISmCauchyDistribution.A

Fore Syntax

A: Double;

Fore.NET Syntax

A: double;

Description

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

Fore 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.

Fore.NET Example

Imports Prognoz.Platform.Interop.Stat;

Public Shared Sub Main(Params: StartParams);
Var
    Distrib: ISmCauchyDistribution;
    Values: System.Array;
    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
        System.Diagnostics.Debug.WriteLine(Values[i]);
    End For;
End Sub;

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