|
pf
|
A class that performs sampling from a Beta distribution. More...
#include <rv_samp.h>


Public Member Functions | |
| BetaSampler ()=delete | |
| Default-constructor sets up for Beta(1,1) random variate generation. | |
| BetaSampler (float_t alpha, float_t beta) | |
| The user must supply both alpha and beta. More... | |
| float_t | sample () |
| Draws a random number. More... | |
Public Member Functions inherited from pf::rvsamp::rvsamp_base | |
| 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_first_gamma_gen |
| makes gamma random variates | |
| std::gamma_distribution< float_t > | m_second_gamma_gen |
| makes other gamma random variates | |
| float_t | m_alpha |
| the first shape parameter | |
| float_t | m_beta |
| the second shape parameter | |
Additional Inherited Members | |
Protected Attributes inherited from pf::rvsamp::rvsamp_base | |
| std::mt19937 | m_rng |
| prng | |
A class that performs sampling from a Beta distribution.
| pf::rvsamp::BetaSampler< float_t >::BetaSampler | ( | float_t | alpha, |
| float_t | beta | ||
| ) |
The user must supply both alpha and beta.
| alpha | shape 1 parameter (> 0) |
| beta | shape 2 parameter (> 0) |
| float_t pf::rvsamp::BetaSampler< float_t >::sample |
Draws a random number.