Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function RandUniform: TMtxVec; | The pseudo random sample generator with continuous uniform distribution. |
| 2 | function RandUniform(aLow: Double; aHigh: Double): TMtxVec; | Fills the calling object values with pseudo random samples following the continuous uniform distribution. |
| 3 | function RandUniform(Seed: Cardinal; aLow: Double; aHigh: Double): TMtxVec; | Fills the calling object values with pseudo random samples following the continuous uniform distribution. |
Overload 1: function RandUniform: TMtxVec;
The pseudo random sample generator with continuous uniform distribution.
Result: stored in self (calling object), returns self for chaining
Fills the calling object values with pseudo random samples following the continuous uniform distribution using the parameters Low = 0, High = 1. The value for the seed is obtained from the CPU clock.
var a: Matrix;
begin
a.Size(10,10,False);
a.RandUniform(0,5);
end;
Overload 2: function RandUniform(aLow: Double; aHigh: Double): TMtxVec;
Fills the calling object values with pseudo random samples following the continuous uniform distribution.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aLow | Double | scalar |
| 2 | aHigh | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Use parameters Low and High. The value for the seed is obtained from the CPU clock.
Overload 3: function RandUniform(Seed: Cardinal; aLow: Double; aHigh: Double): TMtxVec;
Fills the calling object values with pseudo random samples following the continuous uniform distribution.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Seed | Cardinal | |
| 2 | aLow | Double | scalar |
| 3 | aHigh | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Use parameters Low and High and Seed.