Mersenne Twister random number generator
Inheritance Hierarchy
OpenCvSharp.CPlusPlusRNG_MT19937
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The RNG_MT19937 type exposes the following members.
Constructors
Name | Description | |
---|---|---|
RNG_MT19937 | Initializes a new instance of the RNG_MT19937 class | |
RNG_MT19937(UInt32) | Initializes a new instance of the RNG_MT19937 class |
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Next |
updates the state and returns the next 32-bit unsigned integer random number
| |
Run | ||
Run(UInt32) |
returns a random integer sampled uniformly from [0, N).
| |
Seed | ||
ToString | (Inherited from Object.) | |
Uniform(Double, Double) |
returns uniformly distributed double-precision floating-point random number from [a,b) range
| |
Uniform(Int32, Int32) |
returns uniformly distributed integer random number from [a,b) range
| |
Uniform(Single, Single) |
returns uniformly distributed floating-point random number from [a,b) range
|
Operators
Name | Description | |
---|---|---|
(RNG_MT19937 to UInt32) | ||
(RNG_MT19937 to Int32) | ||
(RNG_MT19937 to Single) | ||
(RNG_MT19937 to Double) |
Remarks
See Also