#include <phrand.h>
Inheritance diagram for simth::DiscreteUniformRng:
Public Member Functions | |
DiscreteUniformRng (size_t K) | |
virtual | ~DiscreteUniformRng () |
virtual double | get () const |
double | get_inl () const |
void | refresh (size_t K=0) |
This class creates a set of discrete values, uniformly distributed in the range [0.0, 1.0). The random values are then drawn from this set of discrete values, with all values equal probability (i.e. the PDF of the index distribution is also uniform).
|
Constructor for a discrete distribution with K distinct values in the set of possible values. |
|
|
|
Returns a random variate with the described uniform distribution in the range of [0,1). Implements simth::RandomGenerator. |
|
Non-virtual inline version of get(). |
|
Refreshs the set of discrete values, i.e. dices a new set of them.
|