Binomial distribution.
More...
#include </scratch/bob/jari/tmp/pristine/yat-0.10.x/yat/random/random.h>
List of all members.
Public Member Functions |
| Binomial (double p, unsigned int n) |
| Constructor.
|
unsigned long | operator() (void) const |
Private Member Functions |
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.
|
Private Attributes |
RNG * | rng_ |
| GSL random gererator.
|
Detailed Description
Binomial distribution.
- See also:
- gsl_ran_binomial
- Since:
- New in yat 0.10
Constructor & Destructor Documentation
theplu::yat::random::Binomial::Binomial |
( |
double |
p, |
|
|
unsigned int |
n |
|
) |
| |
Constructor.
Create an object that generates random numbers from binomial distribution, the number of successes in
trials each with success probability p.
Member Function Documentation
unsigned long theplu::yat::random::Binomial::operator() |
( |
void |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following file:
- /scratch/bob/jari/tmp/pristine/yat-0.10.x/yat/random/random.h