Classes | |
| class | NonUniformRandomInt |
| Class for generating random integers between 0 (inclusive) and and upperbound (exlusive), with given probabilities. More... | |
Functions | |
| def | calc_expected |
| Calculates the expected average for a list of probabilities. | |
| def | demo_NonUniformRandomInt |
| Demonstrates the usage of NonUniformRandomInt. | |
Variables | |
| float | FLOAT_ERROR = 0.000001 |
| def non_uniform_random_int.calc_expected | ( | probs_list | ) |
Calculates the expected average for a list of probabilities.
Used by the demo.
Definition at line 110 of file non_uniform_random_int.py.
| def non_uniform_random_int.demo_NonUniformRandomInt | ( | ) |
Demonstrates the usage of NonUniformRandomInt.
Definition at line 118 of file non_uniform_random_int.py.
| float non_uniform_random_int.FLOAT_ERROR = 0.000001 |
Definition at line 9 of file non_uniform_random_int.py.
1.5.8