Matrix.RandGauss Method

Overload List

#SignatureDescription
1function RandGauss: TMtxVec;The pseudo random sample generator with Gaussian distribution.
2function RandGauss(AMean: Double; AStdDev: Double): TMtxVec;Fills the calling object values with pseudo random samples following the Gaussian distribution.
3function RandGauss(Seed: Cardinal; AMean: Double; AStdDev: Double): TMtxVec;Fills the calling object values with pseudo random samples following the Gaussian distribution.

Overload 1: function RandGauss: TMtxVec;

The pseudo random sample generator with Gaussian distribution.

Result: stored in self (calling object), returns self for chaining

Remarks:

Fills the calling object values with pseudo random samples following the Gaussian distribution with parameters: Mean = 0, StdDev = 1 ("Standard disctribution"). The value for the seed is obtained from the CPU clock.

Examples
var a: Matrix;
begin
    a.Size(50,10,False);
    a.RandGauss;
end;
See Also: Matrix.RandUniform

Overload 2: function RandGauss(AMean: Double; AStdDev: Double): TMtxVec;

Fills the calling object values with pseudo random samples following the Gaussian distribution.

#NameTypeDescription
1AMeanDoublepre-computed mean
2AStdDevDoubleoutput std deviation

Result: stored in self (calling object), returns self for chaining

Remarks:

Use parameters: AMean and AStdDev. The value for the seed is obtained from the CPU clock.

Overload 3: function RandGauss(Seed: Cardinal; AMean: Double; AStdDev: Double): TMtxVec;

Fills the calling object values with pseudo random samples following the Gaussian distribution.

#NameTypeDescription
1SeedCardinal
2AMeanDoublepre-computed mean
3AStdDevDoubleoutput std deviation

Result: stored in self (calling object), returns self for chaining

Remarks:

Use parameters: AMean, AStdDev and with Seed.