pf
|
A class that performs sampling from a continuous uniform distribution. More...
#include <rv_samp.h>
Public Member Functions | |
UniformSampler () | |
The default constructor. Gives a lower bound of 0 and upper bound of 1. | |
UniformSampler (float_t lower, float_t upper) | |
The constructor. More... | |
float_t | sample () |
Draws a sample. More... | |
![]() | |
rvsamp_base () | |
The default constructor. This is the only option available. Sets the seed with the clock. | |
Private Attributes | |
std::uniform_real_distribution< float_t > | m_unif_gen |
makes uniform random variates | |
Additional Inherited Members | |
![]() | |
std::mt19937 | m_rng |
prng | |
A class that performs sampling from a continuous uniform distribution.
pf::rvsamp::UniformSampler< float_t >::UniformSampler | ( | float_t | lower, |
float_t | upper | ||
) |
The constructor.
lower | the lower bound of the PRNG. |
upper | the upper bound of the PRNG. |
float_t pf::rvsamp::UniformSampler< float_t >::sample |
Draws a sample.