fmcs
v0.2.1
|
A discrete uniform distribution over integers. More...
#include "distributions.hpp"
Public Member Functions | |
DiscreteUniform (int high) | |
DiscreteUniform (int low, int high) | |
template<typename... Vs> | |
DiscreteUniform (std::variant< Vs... > low, std::variant< Vs... > high) | |
double | logprob (int value) const |
template<typename RNG > | |
int | sample (RNG &rng) |
std::string | string () |
Public Member Functions inherited from Distribution< DiscreteUniform, int > | |
double | logprob (int value) |
int | sample (RNG &rng) |
std::string | string () const |
Public Attributes | |
std::uniform_int_distribution | dist |
int | high |
int | low |
A discrete uniform distribution over integers.