#include <core.hpp>
Public Member Functions | |
| RNG_MT19937 () | |
| RNG_MT19937 (unsigned s) | |
| void | seed (unsigned s) |
| unsigned | next () |
| operator int () | |
| operator unsigned () | |
| operator float () | |
| operator double () | |
| unsigned | operator() (unsigned N) |
| unsigned | operator() () |
| 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... | |
Random Number Generator - MT
The class implements RNG using the Mersenne Twister algorithm
| cv::RNG_MT19937::RNG_MT19937 | ( | ) |
| cv::RNG_MT19937::RNG_MT19937 | ( | unsigned | s | ) |
| unsigned cv::RNG_MT19937::next | ( | ) |
| cv::RNG_MT19937::operator double | ( | ) |
| cv::RNG_MT19937::operator float | ( | ) |
| cv::RNG_MT19937::operator int | ( | ) |
| cv::RNG_MT19937::operator unsigned | ( | ) |
| unsigned cv::RNG_MT19937::operator() | ( | unsigned | N | ) |
| unsigned cv::RNG_MT19937::operator() | ( | ) |
| void cv::RNG_MT19937::seed | ( | unsigned | s | ) |
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