yat
0.14.5pre
|
Continuous random number distributions. More...
#include <yat/random/random.h>
Public Types | |
typedef double | result_type |
Public Member Functions | |
Continuous (void) | |
Constructor. | |
virtual | ~Continuous (void) |
The destructor. | |
void | seed (unsigned long s) const |
Set the seed to s. More... | |
unsigned long | seed_from_devurandom (void) |
Set the seed using the /dev/urandom device. More... | |
virtual result_type | operator() (void) const =0 |
Protected Attributes | |
RNG * | rng_ |
pointer to GSL random generator | |
Continuous random number distributions.
Abstract base class for continuous random number distributions.
typedef double theplu::yat::random::Continuous::result_type |
type returned by operator()
|
pure virtual |
Implemented in theplu::yat::random::Gaussian, theplu::yat::random::Exponential, theplu::yat::random::ContinuousGeneral, and theplu::yat::random::ContinuousUniform.
void theplu::yat::random::Continuous::seed | ( | unsigned long | s | ) | const |
Set the seed to s.
Set the seed to s in the underlying rng. If s is zero, a default value from the rng's original implementation is used (cf. GSL documentation).
unsigned long theplu::yat::random::Continuous::seed_from_devurandom | ( | void | ) |
Set the seed using the /dev/urandom device.