OpenCV  3.0.0
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
cv::RNG_MT19937 Class Reference

Mersenne Twister random number generator. More...

#include "core.hpp"

Public Member Functions

 RNG_MT19937 ()
 
 RNG_MT19937 (unsigned s)
 
unsigned next ()
 
 operator double ()
 
 operator float ()
 
 operator unsigned ()
 
unsigned operator() (unsigned N)
 
unsigned operator() ()
 
void seed (unsigned s)
 
int uniform (int a, int b)
 returns uniformly distributed integer random number from [a,b) range More...
 
float uniform (float a, float b)
 returns uniformly distributed floating-point random number from [a,b) range More...
 
double uniform (double a, double b)
 returns uniformly distributed double-precision floating-point random number from [a,b) range More...
 

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

Constructor & Destructor Documentation

cv::RNG_MT19937::RNG_MT19937 ( )
cv::RNG_MT19937::RNG_MT19937 ( unsigned  s)

Member Function Documentation

unsigned cv::RNG_MT19937::next ( )
cv::RNG_MT19937::operator double ( )
cv::RNG_MT19937::operator float ( )
cv::RNG_MT19937::operator unsigned ( )
unsigned cv::RNG_MT19937::operator() ( unsigned  N)
unsigned cv::RNG_MT19937::operator() ( )
void cv::RNG_MT19937::seed ( unsigned  s)
int cv::RNG_MT19937::uniform ( int  a,
int  b 
)

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

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

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

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

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


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