lppl  v2.0.0
DiscreteUniform Struct Reference

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 Attributes

std::uniform_int_distribution dist
 
int high
 
int low
 

Detailed Description

A discrete uniform distribution over integers.


The documentation for this struct was generated from the following file: