Binomial distribution.
More...
#include <yat/random/random.h>
Binomial distribution.
- See Also
- gsl_ran_binomial
- Since
- New in yat 0.10
type returned by operator()
- Since
- New in yat 0.10
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.
unsigned long theplu::yat::random::Binomial::operator() |
( |
void |
| ) |
const |
|
virtual |
void theplu::yat::random::Discrete::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).
- Deprecated:
- Provided for backward compatibility with the 0.7 API. Use RNG::instance()->seed(s) instead.
unsigned long theplu::yat::random::Discrete::seed_from_devurandom |
( |
void |
| ) |
|
|
inherited |
The documentation for this class was generated from the following file: