Class cv::RNG_MT19937#

Mersenne Twister random number generator. View details

#include <opencv2/core.hpp>

Collaboration diagram for cv::RNG_MT19937:

Detailed Description#

Mersenne Twister random number generator.

Inspired by http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c

Todo:

document

Member Enumeration Documentation#

enum PeriodParameters

N

M

Constructor & Destructor Documentation#

RNG_MT19937()#

cv::RNG_MT19937::RNG_MT19937()

RNG_MT19937()#

cv::RNG_MT19937::RNG_MT19937(unsigned s)

Member Function Documentation#

next()#

unsigned cv::RNG_MT19937::next()

operator double()#

cv::RNG_MT19937::operator double()

operator float()#

cv::RNG_MT19937::operator float()

operator unsigned()#

cv::RNG_MT19937::operator unsigned()

operator()()#

unsigned cv::RNG_MT19937::operator()()

operator()()#

unsigned cv::RNG_MT19937::operator()(unsigned N)

seed()#

void cv::RNG_MT19937::seed(unsigned s)

uniform()#

double cv::RNG_MT19937::uniform(
double a,
double b )

returns uniformly distributed double-precision floating-point random number from [a,b) range

uniform()#

float cv::RNG_MT19937::uniform(
float a,
float b )

returns uniformly distributed floating-point random number from [a,b) range

uniform()#

int cv::RNG_MT19937::uniform(
int a,
int b )

returns uniformly distributed integer random number from [a,b) range

Member Data Documentation#

mti#

int cv::RNG_MT19937::mti

state#

unsigned cv::RNG_MT19937::state

Source file#

The documentation for this class was generated from the following file: