|
5.0.0
Freundlich's C++ toolkit
|
Parameters class for uniform real distributions.
This class can be used as fcppt::random::distribution::basic's template parameter and is also used to initialize an object of it. It uses strong typedefs for the min and sup parameters.
Public Types | |
| using | result_type = FloatType |
| using | base_type = fcppt::random::distribution::base_type<result_type> |
| using | distribution = std::uniform_real_distribution<base_type> |
| using | wrapped_param_type = typename distribution::param_type |
| using | min = fcppt::strong_typedef< FloatType ,_> |
| using | sup = fcppt::strong_typedef< FloatType ,_> |
Public Member Functions | |
| uniform_real (min _min, sup _sup) | |
| Constructs parameters for a uniform real distribution. | |
| wrapped_param_type | convert_from () const |
Static Public Member Functions | |
| static uniform_real | convert_to (distribution const &) |
| using fcppt::random::distribution::parameters::uniform_real< FloatType >::base_type = fcppt::random::distribution::base_type<result_type> |
| using fcppt::random::distribution::parameters::uniform_real< FloatType >::distribution = std::uniform_real_distribution<base_type> |
| using fcppt::random::distribution::parameters::uniform_real< FloatType >::min = fcppt::strong_typedef< FloatType ,_> |
| using fcppt::random::distribution::parameters::uniform_real< FloatType >::result_type = FloatType |
| using fcppt::random::distribution::parameters::uniform_real< FloatType >::sup = fcppt::strong_typedef< FloatType ,_> |
| using fcppt::random::distribution::parameters::uniform_real< FloatType >::wrapped_param_type = typename distribution::param_type |
| fcppt::random::distribution::parameters::uniform_real< FloatType >::uniform_real | ( | min | _min, |
| sup | _sup ) |
Constructs parameters for a uniform real distribution.
Constructs parameters for a uniform real distribution that can produce values from _min to (not including) _sup
| _min | The minimum value this distribution can produce |
| _sup | The supremum of all values this distribution can produce |
|
nodiscard |
|
staticnodiscard |