A: Double;
A: double;
The A property determines the value of the shift parameter (median) of distribution.
To execute the example, add a link to the Stat system assembly.
Sub UserProc;
Var
Distrib: ISmLogisticDistribution;
Values: Array Of Double;
i: Integer;
Cnt: Integer = 10;
Begin
Distrib := New SmLogisticDistribution.Create;
Distrib.A := -3;
Distrib.B := 5;
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 logistic distribution with selected location parameter (median) and scale parameter.
Imports Prognoz.Platform.Interop.Stat;
…
Public Shared Sub Main(Params: StartParams);
Var
Distrib: ISmLogisticDistribution;
Values: System.Array;
i: Integer;
Cnt: Integer = 10;
Begin
Distrib := New SmLogisticDistribution.Create();
Distrib.A := -3;
Distrib.B := 5;
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 logistic distribution with selected location parameter (median) and scale parameter.
See also: