|
Stride Reference Manual
1.0
|
#include <AliasDistribution.h>


Public Member Functions | |
| MappedAliasDistribution (const map< unsigned int, double > &m) | |
| MappedAliasDistribution ()=default | |
| template<typename RNG > | |
| unsigned int | operator() (RNG &gen) |
Public Member Functions inherited from stride::util::AliasDistribution | |
| AliasDistribution (const vector< double > &probs) | |
| Construct the distribution using the method described here: http://keithschwarz.com/darts-dice-coins/. More... | |
| AliasDistribution ()=delete | |
| template<typename RNG > | |
| unsigned int | operator() (RNG &gen) |
Private Attributes | |
| map< unsigned int, unsigned int > | m_translation |
Additional Inherited Members | |
Protected Attributes inherited from stride::util::AliasDistribution | |
| vector< AliasBlock > | m_blocks |
| uniform_int_distribution< unsigned int > | m_diceroll |
Static Protected Attributes inherited from stride::util::AliasDistribution | |
| static uniform_real_distribution< double > | g_coinflip = uniform_real_distribution<double>(0, 1) |
Definition at line 50 of file AliasDistribution.h.
| MappedAliasDistribution::MappedAliasDistribution | ( | const map< unsigned int, double > & | m | ) |
Definition at line 51 of file AliasDistribution.cpp.
References m_translation.
|
default |
|
inline |
| gen | A random generator conforming the standard operator() usage |
Definition at line 61 of file AliasDistribution.h.
References stride::util::AliasDistribution::operator()().
|
private |
Definition at line 67 of file AliasDistribution.h.
Referenced by MappedAliasDistribution().