|
0.12.0
|
|
Freundlich's C++ toolkit |
A wrapper around a uniform real distribution.
Wraps a uniform real distribution, removing the default parameters of the constructor and also using strong typedefs.
| FloatType | Must be an floating point type |
Public Types | |
| typedef FloatType | float_type |
| The float type used. | |
| typedef wrapped::result_type | result_type |
| The result returned by drawing random numbers. | |
| typedef float_type | min |
| typedef float_type | sup |
Public Member Functions | |
| FCPPT_STATIC_ASSERT_STATEMENT (boost::is_floating_point< float_type >::value) | |
| uniform_real (min _min, sup _sup) | |
| Constructs a uniform real distribution. | |
Public Attributes | |
| FCPPT_RANDOM_DISTRIBUTION_DECLARE_CALL | |
| typedef FloatType fcppt::random::distribution::uniform_real< FloatType >::float_type |
The float type used.
| typedef float_type fcppt::random::distribution::uniform_real< FloatType >::min |
| typedef wrapped::result_type fcppt::random::distribution::uniform_real< FloatType >::result_type |
The result returned by drawing random numbers.
| typedef float_type fcppt::random::distribution::uniform_real< FloatType >::sup |
| fcppt::random::distribution::uniform_real< FloatType >::uniform_real | ( | min | _min, |
| sup | _sup | ||
| ) |
Constructs a uniform real distribution.
Constructs the uniform real distribution from _min and _sup.
| _min | The minimum value this distribution can produce |
| _sup | The supremum of all values this distribution can produce |
| fcppt::random::distribution::uniform_real< FloatType >::FCPPT_STATIC_ASSERT_STATEMENT | ( | boost::is_floating_point< float_type >::value | ) |
| fcppt::random::distribution::uniform_real< FloatType >::FCPPT_RANDOM_DISTRIBUTION_DECLARE_CALL |
1.8.2