yat
0.14.5pre
|
Generator of random numbers from an exponential distribution. More...
#include <yat/random/random.h>
Public Types | |
typedef double | result_type |
Public Member Functions | |
Exponential (const double m=1) | |
Constructor. More... | |
double | operator() (void) const |
double | operator() (const double m) const |
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... | |
Protected Attributes | |
RNG * | rng_ |
pointer to GSL random generator | |
Generator of random numbers from an exponential distribution.
The distribution function is for with the expectation value and variance
|
inherited |
type returned by operator()
|
explicit |
Constructor.
m | is the expectation value of the distribution. |
|
virtual |
Implements theplu::yat::random::Continuous.
double theplu::yat::random::Exponential::operator() | ( | const double | m | ) | 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).
|
inherited |
Set the seed using the /dev/urandom device.