#include <discrete_distribution.hh>
Public Member Functions | |
DiscreteDistribution (const std::vector< double > &distvec) | |
Construct with distribution vector. | |
size_t | operator() (size_t x) |
get random number |
Generate discrete distributions from pseudo random numbers
LocARNA::DiscreteDistribution::DiscreteDistribution | ( | const std::vector< double > & | distvec | ) | [inline, explicit] |
Construct with distribution vector.
distvec | vector defining discrete distribution |
size_t LocARNA::DiscreteDistribution::operator() | ( | size_t | x | ) | [inline] |
get random number
x | random number |