|
Scheduler
|
#include <bernoulli.h>
Public Member Functions | |
| Bernoulli (RandomGenerator *gen, double p) | |
| virtual | ~Bernoulli () |
| double | draw () override |
| returns a number from 0 to 1 following the underlying probability distribution More... | |
Public Member Functions inherited from Utils::BoundedRandomDistribution | |
| virtual | ~BoundedRandomDistribution () |
Definition at line 20 of file bernoulli.h.
| Bernoulli::Bernoulli | ( | RandomGenerator * | gen, |
| double | p | ||
| ) |
This is a Bernoulli distribution.
| p | is the probability of drawing a one |
Definition at line 18 of file bernoulli.cpp.
|
inlinevirtual |
Definition at line 27 of file bernoulli.h.
|
overridevirtual |
returns a number from 0 to 1 following the underlying probability distribution
Implements Utils::BoundedRandomDistribution.
Definition at line 28 of file bernoulli.cpp.
1.8.11