Public Member Functions
RNG Class Reference

#include <RNG.h>

List of all members.

Public Member Functions

int poissonInt (int mean)
float randomFloat ()
int randomInt (int min, int max)
int randomInt (int max=std::numeric_limits< int >::max())
void randomOrdering (std::vector< unsigned int > &inds)
int randomUInt (unsigned int max=std::numeric_limits< unsigned int >::max())
 RNG (unsigned int seed)
int select (const std::vector< float > &probabilities)

Detailed Description

Definition at line 13 of file RNG.h.

Constructor & Destructor Documentation

RNG::RNG ( unsigned int  seed) [inline]

Definition at line 16 of file RNG.h.

Member Function Documentation

int RNG::poissonInt ( int  mean) [inline]

Definition at line 40 of file RNG.h.

float RNG::randomFloat ( ) [inline]

Definition at line 18 of file RNG.h.

int RNG::randomInt ( int  min,
int  max 
) [inline]

Definition at line 24 of file RNG.h.

int RNG::randomInt ( int  max = std::numeric_limits<int>::max()) [inline]

Definition at line 30 of file RNG.h.

void RNG::randomOrdering ( std::vector< unsigned int > &  inds) [inline]

Definition at line 46 of file RNG.h.

int RNG::randomUInt ( unsigned int  max = std::numeric_limits<unsigned int>::max()) [inline]

Definition at line 34 of file RNG.h.

int RNG::select ( const std::vector< float > &  probabilities) [inline]

Definition at line 60 of file RNG.h.

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

Author(s): Piyush Khandelwal
autogenerated on Thu Jun 6 2019 17:57:26