Thrill
0.1
|
Definition at line 73 of file hypergeometric_distribution.hpp.
#include <hypergeometric_distribution.hpp>
Public Types | |
using | real_type = fp_t |
using | result_type = int_t |
Public Member Functions | |
hypergeometric_distribution (size_t seed=0) | |
int_t | operator() (int_t good, int_t bad, int_t sample) |
void | seed (size_t seed_val) |
Private Member Functions | |
fp_t | loggam (fp_t x) const |
int_t | rk_hypergeometric (int_t good, int_t bad, int_t sample) |
int_t | rk_hypergeometric_hrua (int_t good, int_t bad, int_t sample) |
int_t | rk_hypergeometric_hyp (int_t good, int_t bad, int_t sample) |
Private Attributes | |
std::uniform_real_distribution< fp_t > | dist |
std::mt19937 | rng |
Static Private Attributes | |
static constexpr fp_t | D1 = 1.7155277699214135 |
static constexpr fp_t | D2 = 0.8989161620588988 |
using real_type = fp_t |
Definition at line 77 of file hypergeometric_distribution.hpp.
using result_type = int_t |
Definition at line 76 of file hypergeometric_distribution.hpp.
|
inline |
Definition at line 79 of file hypergeometric_distribution.hpp.
|
inlineprivate |
Definition at line 106 of file hypergeometric_distribution.hpp.
Referenced by hypergeometric_distribution<>::rk_hypergeometric_hrua().
|
inline |
Definition at line 83 of file hypergeometric_distribution.hpp.
|
inlineprivate |
Definition at line 227 of file hypergeometric_distribution.hpp.
Referenced by hypergeometric_distribution<>::operator()().
|
inlineprivate |
Definition at line 173 of file hypergeometric_distribution.hpp.
Referenced by hypergeometric_distribution<>::rk_hypergeometric().
|
inlineprivate |
Definition at line 153 of file hypergeometric_distribution.hpp.
Referenced by hypergeometric_distribution<>::rk_hypergeometric().
|
inline |
Definition at line 96 of file hypergeometric_distribution.hpp.
Referenced by SampleNode< ValueType >::calc_local_samples().
|
staticprivate |
Definition at line 150 of file hypergeometric_distribution.hpp.
|
staticprivate |
Definition at line 151 of file hypergeometric_distribution.hpp.
Referenced by hypergeometric_distribution<>::rk_hypergeometric_hrua().
|
private |
Definition at line 238 of file hypergeometric_distribution.hpp.
Referenced by hypergeometric_distribution<>::rk_hypergeometric_hrua(), and hypergeometric_distribution<>::rk_hypergeometric_hyp().
|
private |
Definition at line 237 of file hypergeometric_distribution.hpp.
Referenced by hypergeometric_distribution<>::rk_hypergeometric_hrua(), hypergeometric_distribution<>::rk_hypergeometric_hyp(), and hypergeometric_distribution<>::seed().