Opencv 3.1 project on GR-PEACH board

Fork of gr-peach-opencv-project by the do

Embed: (wiki syntax)

« Back to documentation index

RNG_MT19937 Class Reference

RNG_MT19937 Class Reference
[Operations on arrays]

Mersenne Twister random number generator. More...

#include <core.hpp>

Public Member Functions

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

Detailed Description

Mersenne Twister random number generator.

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

Definition at line 2798 of file core.hpp.


Member Function Documentation

int uniform ( int  a,
int  b 
)

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

Definition at line 951 of file rand.cpp.

double uniform ( double  a,
double  b 
)

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

Definition at line 955 of file rand.cpp.

float uniform ( float  a,
float  b 
)

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

Definition at line 953 of file rand.cpp.