The RNG. More...
#include <rng.h>
Public Member Functions | |
| CRNG (UInt32 un_seed) | |
| Class constructor.  More... | |
| CRNG (const CRNG &c_rng) | |
| Class copy constructor.  More... | |
| virtual | ~CRNG () | 
| Class destructor.  More... | |
| UInt32 | GetSeed () const throw () | 
| Returns the seed of this RNG.  More... | |
| void | SetSeed (UInt32 un_seed) throw () | 
| Sets the seed of this RNG.  More... | |
| void | Reset () | 
| Reset the RNG.  More... | |
| bool | Bernoulli (Real f_true=0.5) | 
| Returns a random value from a Bernoulli distribution.  More... | |
| CRadians | Uniform (const CRange< CRadians > &c_range) | 
| Returns a random value from a uniform distribution.  More... | |
| Real | Uniform (const CRange< Real > &c_range) | 
| Returns a random value from a uniform distribution.  More... | |
| SInt32 | Uniform (const CRange< SInt32 > &c_range) | 
| Returns a random value from a uniform distribution.  More... | |
| UInt32 | Uniform (const CRange< UInt32 > &c_range) | 
| Returns a random value from a uniform distribution.  More... | |
| Real | Exponential (Real f_mean) | 
| Returns a random value from an exponential distribution.  More... | |
| UInt32 | Poisson (Real f_mean) | 
| Returns a random value from a Poisson distribution.  More... | |
| Real | Gaussian (Real f_std_dev, Real f_mean=0.0f) | 
| Returns a random value from a Gaussian distribution.  More... | |
| Real | Rayleigh (Real f_sigma) | 
| Returns a random value from a Rayleigh distribution.  More... | |
| Real | Lognormal (Real f_sigma, Real f_mu) | 
| Returns a random value from a Lognormal distribution.  More... | |
| template<typename T > | |
| void | Shuffle (std::vector< T > &vec_data) | 
| Shuffles the values of the given vector in-place.  More... | |
The RNG.
This class is the real random number generator. You need an instance of this class to be able to generate random numbers.
| argos::CRandom::CRNG::CRNG | ( | UInt32 | un_seed | ) | 
Class constructor.
To create a new RNG from user code, never use this method. Use CreateRNG() instead.
| un_seed | the seed of the RNG. | 
| str_type | the type of RNG to use. By default, Mersenne Twister is used. For a list of available RNG types, see GetRNGTypes(). | 
| argos::CRandom::CRNG::CRNG | ( | const CRNG & | c_rng | ) | 
Class copy constructor.
To create a new RNG from user code, never use this method. Use CreateRNG() instead.
| bool argos::CRandom::CRNG::Bernoulli | ( | Real | f_true = 0.5 | ) | 
      
  | 
  inline | |||||||||||||
| void argos::CRandom::CRNG::Reset | ( | ) | 
      
  | 
  inline | ||||||||||||||
      
  | 
  inline |