TMtx.RandGauss Method

Overload List

#SignatureDescription
1TMtxVec RandGaussThe pseudo random sample generator with Gaussian distribution.
2TMtxVec RandGauss(Double AMean, Double AStdDev)Fills the calling object values with pseudo random samples following the Gaussian distribution.
3TMtxVec RandGauss(UInt32 Seed, Double AMean, Double AStdDev)Fills the calling object values with pseudo random samples following the Gaussian distribution.

Overload 1: TMtxVec RandGauss

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
Matrix a;
a.Size(50,10,false);
a.RandGauss;

Overload 2: TMtxVec RandGauss(Double AMean, Double AStdDev)

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:

The algorithm uses parameter AMean and AStdDev. The value for the seed is obtained from the CPU clock.

Overload 3: TMtxVec RandGauss(UInt32 Seed, Double AMean, Double AStdDev)

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

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

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

Remarks:

The algorithm uses parameters AMean, AStdDev and Seed.