opencv
2.2.0
|
#include <core.hpp>
Public Types | |
enum | { A =4164903690U, UNIFORM =0, NORMAL =1 } |
Public Member Functions | |
void | fill (Mat &mat, int distType, const Scalar &a, const Scalar &b) |
double | gaussian (double sigma) |
returns Gaussian random variate with mean zero. | |
unsigned | next () |
updates the state and returns the next 32-bit unsigned integer random number | |
operator double () | |
operator float () | |
operator int () | |
operator schar () | |
operator short () | |
operator uchar () | |
operator unsigned () | |
operator ushort () | |
unsigned | operator() (unsigned N) |
returns a random integer sampled uniformly from [0, N). | |
unsigned | operator() () |
RNG () | |
RNG (uint64 _state) | |
int | uniform (int a, int b) |
returns uniformly distributed integer random number from [a,b) range | |
float | uniform (float a, float b) |
returns uniformly distributed floating-point random number from [a,b) range | |
double | uniform (double a, double b) |
returns uniformly distributed double-precision floating-point random number from [a,b) range | |
Public Attributes | |
uint64 | state |
Random Number Generator
The class implements RNG using Multiply-with-Carry algorithm
|
inline |
|
inline |
double cv::RNG::gaussian | ( | double | sigma | ) |
returns Gaussian random variate with mean zero.
|
inline |
updates the state and returns the next 32-bit unsigned integer random number
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
returns a random integer sampled uniformly from [0, N).
|
inline |
|
inline |
returns uniformly distributed integer random number from [a,b) range
|
inline |
returns uniformly distributed floating-point random number from [a,b) range
|
inline |
returns uniformly distributed double-precision floating-point random number from [a,b) range
uint64 cv::RNG::state |