Random Number Generator.
The class implements RNG using Multiply-with-Carry algorithm.
Inheritance Hierarchy
OpenCvSharp.CPlusPlusRNG
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
The RNG type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| RNG | Initializes a new instance of the RNG class | |
| RNG(UInt64) | Initializes a new instance of the RNG class |
Properties
| Name | Description | |
|---|---|---|
| State |
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Fill | ||
| Finalize | (Inherited from Object.) | |
| Gaussian |
returns Gaussian random variate with mean zero.
| |
| 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).
| |
| 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 to Byte) | ||
| (RNG to SByte) | ||
| (RNG to UInt16) | ||
| (RNG to Int16) | ||
| (RNG to UInt32) | ||
| (RNG to Int32) | ||
| (RNG to Single) | ||
| (RNG to Double) |
Remarks
See Also