#include <yat/random/random.h>
Public Member Functions | |
Exponential (const double m=1) | |
Constructor. | |
double | operator() (void) const |
double | operator() (const double m) const |
void | seed (unsigned long s) const |
Set the seed to s. | |
unsigned long | seed_from_devurandom (void) |
Set the seed using the /dev/urandom device. | |
Protected Attributes | |
RNG * | rng_ |
pointer to GSL random generator |
The distribution function is for with the expectation value and variance
theplu::yat::random::Exponential::Exponential | ( | const double | m = 1 |
) | [explicit] |
Constructor.
m | is the expectation value of the distribution. |
double theplu::yat::random::Exponential::operator() | ( | const double | m | ) | const |
double theplu::yat::random::Exponential::operator() | ( | void | ) | const [virtual] |
void theplu::yat::random::Continuous::seed | ( | unsigned long | s | ) | const [inherited] |
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 | ) | [inline, inherited] |
Set the seed using the /dev/urandom device.