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 (const double &lower, const double &upper) | |
The constructor. More... | |
double | 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 | m_unif_gen |
makes uniform random variates | |
Additional Inherited Members | |
![]() | |
using | ssv = Eigen::Matrix< double, dim, 1 > |
![]() | |
std::mt19937 | m_rng |
prng | |
A class that performs sampling from a continuous uniform distribution.
pf::UniformSampler::UniformSampler | ( | const double & | lower, |
const double & | upper | ||
) |
The constructor.
lower | the lower bound of the PRNG. |
upper | the upper bound of the PRNG. |
double pf::UniformSampler::sample | ( | ) |
Draws a sample.