Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVec *RandUniform() const; | The pseudo random sample generator with continuous uniform distribution. |
| 2 | TMtxVec *RandUniform(double aLow, double aHigh) const; | Fills the calling object values with pseudo random samples following the continuous uniform distribution. |
| 3 | TMtxVec *RandUniform(unsigned int Seed, double aLow, double aHigh) const; | Fills the calling object values with pseudo random samples following the continuous uniform distribution. |
Overload 1: TMtxVec *RandUniform() const;
The pseudo random sample generator with continuous uniform distribution.
Remarks:
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.
Examples
#include "MtxExpr.h"
using namespace Dew;
using namespace Dew::Math;
void Example()
{
Matrix a;
a.Size(10, 10, false);
a.RandUniform(0, 5);
}
See Also: Matrix::RandGauss
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 2: TMtxVec *RandUniform(double aLow, double aHigh) const;
Fills the calling object values with pseudo random samples following the continuous uniform distribution.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aLow | double | |
| 2 | aHigh | double |
Remarks:
Use parameters Low and High. The value for the seed is obtained from the CPU clock.
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler
Overload 3: TMtxVec *RandUniform(unsigned int Seed, double aLow, double aHigh) const;
Fills the calling object values with pseudo random samples following the continuous uniform distribution.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Seed | unsigned int | |
| 2 | aLow | double | |
| 3 | aHigh | double |
Remarks:
Use parameters Low and High and Seed.
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler