A discrete distribution over non-negative integer set [n] for some n over a given probability distribution.
More...
#include <utils/Walker.h>
|
uint32_t | m_N |
|
std::vector< uint32_t > | m_IA |
|
std::vector< double > | m_F |
|
std::uniform_int_distribution< uint32_t > | m_unif_a |
|
std::uniform_real_distribution< double > | m_unif_b |
|
A discrete distribution over non-negative integer set [n] for some n over a given probability distribution.
Note that this class does not satisfy RandomNumberDistribution requirement due to missing many required interfaces.
◆ result_type
◆ Walker() [1/4]
Default constructs walker in an invalid state.
◆ Walker() [2/4]
taco::Walker::Walker |
( |
const std::vector< double > & |
prob | ) |
|
Constructs a discrete distribution over the integer set [0, prob.size()- 1] with the specified distribution.
prob
needs to be normalized. Otherwise it is undefined.
◆ Walker() [3/4]
taco::Walker::Walker |
( |
const Walker & |
| ) |
|
|
default |
◆ Walker() [4/4]
taco::Walker::Walker |
( |
Walker && |
other | ) |
|
|
inline |
◆ operator()()
template<typename RNG >
uint32_t taco::Walker::operator() |
( |
RNG & |
rng | ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ m_F
std::vector<double> taco::Walker::m_F |
|
private |
◆ m_IA
std::vector<uint32_t> taco::Walker::m_IA |
|
private |
◆ m_N
uint32_t taco::Walker::m_N |
|
private |
◆ m_unif_a
std::uniform_int_distribution<uint32_t> taco::Walker::m_unif_a |
|
private |
◆ m_unif_b
std::uniform_real_distribution<double> taco::Walker::m_unif_b |
|
private |
The documentation for this class was generated from the following files: