![]() | RNG Structure |
Namespace: OpenCvSharp
The RNG type exposes the following members.
Name | Description | |
---|---|---|
![]() | Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object).) |
![]() | Equals(RNG) | Indicates whether the current object is equal to another object of the same type. |
![]() | Fill |
Fills arrays with random numbers.
|
![]() | Gaussian |
Returns the next random number sampled from the Gaussian distribution.
The method transforms the state using the MWC algorithm and returns the next random number
from the Gaussian distribution N(0,sigma) . That is, the mean value of the returned random
numbers is zero and the standard deviation is the specified sigma.
|
![]() | GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (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).
|
![]() | ToByte |
(byte)RNG.next()
|
![]() | ToDouble |
returns a next random value as double (System.Double)
|
![]() | ToInt16 |
(short)RNG.next()
|
![]() | ToInt32 |
(int)RNG.next()
|
![]() | ToSByte |
(sbyte)RNG.next()
|
![]() | ToSingle |
returns a next random value as float (System.Single)
|
![]() | ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
![]() | ToUInt16 |
(ushort)RNG.next()
|
![]() | ToUInt32 |
(uint)RNG.next()
|
![]() | 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
|
Name | Description | |
---|---|---|
![]() ![]() | Equality | |
![]() ![]() | (RNG to Byte) |
(byte)RNG.next()
|
![]() ![]() | (RNG to SByte) |
(sbyte)RNG.next()
|
![]() ![]() | (RNG to UInt16) |
(ushort)RNG.next()
|
![]() ![]() | (RNG to Int16) |
(short)RNG.next()
|
![]() ![]() | (RNG to UInt32) |
(uint)RNG.next()
|
![]() ![]() | (RNG to Int32) |
(int)RNG.next()
|
![]() ![]() | (RNG to Single) |
returns a next random value as float (System.Single)
|
![]() ![]() | (RNG to Double) |
returns a next random value as double (System.Double)
|
![]() ![]() | Inequality |