fmcs  v0.2.1
DiscreteUniform Struct Reference

A discrete uniform distribution over integers. More...

#include "distributions.hpp"

Inheritance diagram for DiscreteUniform:
Distribution< DiscreteUniform, int >

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
 

Detailed Description

A discrete uniform distribution over integers.


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