pf
|
A class that performs sampling from a univariate Gamma distribution. More...
#include <rv_samp.h>
Public Member Functions | |
UnivGammaSampler ()=delete | |
Default-constructor ... | |
UnivGammaSampler (float_t alpha, float_t beta) | |
float_t | sample () |
draws a random number. More... | |
![]() | |
rvsamp_base () | |
The default constructor. This is the only option available. Sets the seed with the clock. | |
Private Attributes | |
std::gamma_distribution< float_t > | m_gamma_gen |
makes gamma random variates | |
float_t | m_alpha |
mu | |
float_t | m_beta |
sigma | |
Additional Inherited Members | |
![]() | |
std::mt19937 | m_rng |
prng | |
A class that performs sampling from a univariate Gamma distribution.
pf::rvsamp::UnivGammaSampler< float_t >::UnivGammaSampler | ( | float_t | alpha, |
float_t | beta | ||
) |
alpha | a positive shape parameter. |
beta | a positive scale parameter. |
float_t pf::rvsamp::UnivGammaSampler< float_t >::sample |
draws a random number.