![]() |
fpmas 1.6
|
#include <distribution.h>
Public Types | |
typedef Distribution_t::result_type | result_type |
Public Member Functions | |
template<typename... Args> | |
Distribution (Args... args) | |
template<typename Generator_t > | |
result_type | operator() (Generator_t &generator) |
result_type | min () const override |
result_type | max () const override |
virtual Distribution_t::result_type | min () const=0 |
virtual Distribution_t::result_type | max () const=0 |
Generic api::random::Distribution implementation.
The specified template parameter can be any distribution that satisfy the requirements of the C++ RandomNumberDistribution named requirement.
Distribution_t | predefined C++ distribution, that must satisfy RandomNumberDistribution. |
typedef Distribution_t::result_type fpmas::random::Distribution< Distribution_t >::result_type |
Type of generated values.
|
inline |
Generic Distribution constructor.
Distribution_t
is assumed to be constructible from the specified arguments.
|
inline |
Generates a random value from the input generator, according to the implemented random distribution.
Generator_t | Random number generator (must satisfy UniformRandomBitGenerator) |
generator | random number generator |
|
inlineoverridevirtual |
Returns the minimum value potentially generated by the distribution.
Implements fpmas::api::random::Distribution< Distribution_t::result_type >.
|
inlineoverridevirtual |
Returns the maximum value potentially generated by the distribution.
Implements fpmas::api::random::Distribution< Distribution_t::result_type >.