Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function RandGauss: TMtxVec; | The pseudo random sample generator with Gaussian distribution. |
| 2 | function RandGauss(AMean: Double; AStdDev: Double): TMtxVec; | Fills the calling object values with pseudo random samples following the Gaussian distribution. |
| 3 | function 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
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.
var a: Vector;
begin
a.Size(500,False);
a.RandGauss;
end;
Overload 2: function RandGauss(AMean: Double; AStdDev: Double): TMtxVec;
Fills the calling object values with pseudo random samples following the Gaussian distribution.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | AMean | Double | pre-computed mean |
| 2 | AStdDev | Double | output std deviation |
Result: stored in self (calling object), returns self for chaining
The algorithm uses parameter 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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Seed | Cardinal | |
| 2 | AMean | Double | pre-computed mean |
| 3 | AStdDev | Double | output std deviation |
Result: stored in self (calling object), returns self for chaining
The algorithm uses parameters AMean, AStdDev and Seed.