C# Class OpenCvSharp.RNG_MT19937

Mersenne Twister random number generator
operations.hpp
Afficher le fichier Open project: shimat/opencvsharp

Méthodes publiques

Méthode Description
Next ( ) : uint

updates the state and returns the next 32-bit unsigned integer random number

RNG_MT19937 ( ) : System

RNG_MT19937 ( uint s ) : System

Run ( ) : uint

Run ( uint b ) : uint

returns a random integer sampled uniformly from [0, N).

Seed ( uint s ) : void

Uniform ( double a, double b ) : double

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

Uniform ( float a, float b ) : float

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

Uniform ( int a, int b ) : int

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

Method Details

Next() public méthode

updates the state and returns the next 32-bit unsigned integer random number
public Next ( ) : uint
Résultat uint

RNG_MT19937() public méthode

public RNG_MT19937 ( ) : System
Résultat System

RNG_MT19937() public méthode

public RNG_MT19937 ( uint s ) : System
s uint
Résultat System

Run() public méthode

public Run ( ) : uint
Résultat uint

Run() public méthode

returns a random integer sampled uniformly from [0, N).
public Run ( uint b ) : uint
b uint
Résultat uint

Seed() public méthode

public Seed ( uint s ) : void
s uint
Résultat void

Uniform() public méthode

returns uniformly distributed double-precision floating-point random number from [a,b) range
public Uniform ( double a, double b ) : double
a double
b double
Résultat double

Uniform() public méthode

returns uniformly distributed floating-point random number from [a,b) range
public Uniform ( float a, float b ) : float
a float
b float
Résultat float

Uniform() public méthode

returns uniformly distributed integer random number from [a,b) range
public Uniform ( int a, int b ) : int
a int
b int
Résultat int