#include <random.h>
Collaboration diagram for SPUC::Bernoulli_RNG:

Public Member Functions | |
| Bernoulli_RNG (double prob) | |
| Binary source with probability prob for a 1. | |
| Bernoulli_RNG () | |
| Binary source with probability prob for a 1. | |
| void | setup (double prob) |
| set the probability | |
| double | get_setup () const |
| return the probability | |
| bin | operator() () |
| Get one sample. | |
| bin | sample () |
| Get a sample. | |
|
|
Here is the call graph for this function: ![]() |
|
|
|
|
|
|
|
|
Here is the call graph for this function: ![]() |
|
|
Here is the call graph for this function: ![]() |
|
|
|
1.4.4