|
vg
tools for working with variation graphs
|
#include <statistics.hpp>
Public Types | |
| typedef T | result_type |
Public Member Functions | |
| uniform_int_distribution (T _a=0, T _b=numeric_limits< T >::max()) | |
| void | reset () |
| template<class Generator> | |
| T | operator() (Generator &_g) |
| T | a () const |
| T | b () const |
Protected Member Functions | |
| template<class Generator> | |
| T | generate_from_wide_generator (Generator &_g) |
Protected Attributes | |
| T | m_a |
| T | m_b |
This uniform_int_distribution implementation is based on the UniformRealDistribution from https://stackoverflow.com/a/34962942
| typedef T vg::uniform_int_distribution< T >::result_type |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
Generate a result when we know the generator will produce a result on a range as big as or bigger than ours.
|
inline |
|
inline |
|
protected |
|
protected |
1.17.0