OpenMS  2.7.0
Public Member Functions | Private Attributes | List of all members
SimRandomNumberGenerator Class Reference

Wrapper class for random number generators used by the simulation classes. More...

#include <OpenMS/SIMULATION/SimTypes.h>

Collaboration diagram for SimRandomNumberGenerator:
[legend]

Public Member Functions

boost::random::mt19937_64 & getBiologicalRng ()
 
boost::random::mt19937_64 & getTechnicalRng ()
 
void setBiologicalRngSeed (unsigned long int seed)
 
void setTechnicalRngSeed (unsigned long int seed)
 
void initialize (bool biological_random, bool technical_random)
 Initialize the RNGs. More...
 

Private Attributes

boost::random::mt19937_64 biological_rng_
 random number generator for biological variability More...
 
boost::random::mt19937_64 technical_rng_
 random number generator for technical variability More...
 

Detailed Description

Wrapper class for random number generators used by the simulation classes.

The random numbers are separated two sources of randomness:

Member Function Documentation

◆ getBiologicalRng()

boost::random::mt19937_64& getBiologicalRng ( )
inline

◆ getTechnicalRng()

boost::random::mt19937_64& getTechnicalRng ( )
inline

◆ initialize()

void initialize ( bool  biological_random,
bool  technical_random 
)
inline

◆ setBiologicalRngSeed()

void setBiologicalRngSeed ( unsigned long int  seed)
inline

◆ setTechnicalRngSeed()

void setTechnicalRngSeed ( unsigned long int  seed)
inline

Member Data Documentation

◆ biological_rng_

boost::random::mt19937_64 biological_rng_
private

◆ technical_rng_

boost::random::mt19937_64 technical_rng_
private