4.6.0
Freundlich's C++ toolkit
|
Parameters class for normal 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 mean and stddev parameters.
Public Types | |
using | result_type = FloatType |
using | base_type = fcppt::random::distribution::base_type<result_type> |
using | distribution = std::normal_distribution<base_type> |
using | wrapped_param_type = typename distribution::param_type |
using | mean = fcppt::strong_typedef< FloatType ,_> |
using | stddev = fcppt::strong_typedef< FloatType ,_> |
Public Member Functions | |
normal (mean _mean, stddev _stddev) | |
Constructs parameters for a normal distribution. | |
wrapped_param_type | convert_from () const |
Static Public Member Functions | |
static normal | convert_to (distribution const &) |
using fcppt::random::distribution::parameters::normal< IntType >::base_type = fcppt::random::distribution::base_type<result_type> |
using fcppt::random::distribution::parameters::normal< IntType >::distribution = std::normal_distribution<base_type> |
using fcppt::random::distribution::parameters::normal< IntType >::mean = fcppt::strong_typedef< FloatType ,_> |
using fcppt::random::distribution::parameters::normal< IntType >::result_type = FloatType |
using fcppt::random::distribution::parameters::normal< IntType >::stddev = fcppt::strong_typedef< FloatType ,_> |
using fcppt::random::distribution::parameters::normal< IntType >::wrapped_param_type = typename distribution::param_type |
fcppt::random::distribution::parameters::normal< IntType >::normal | ( | mean | _mean, |
stddev | _stddev ) |
Constructs parameters for a normal distribution.
Constructs parameters for a normal distribution that uses _mean and _stddev as its parameters.
_mean | The mean value |
_stddev | The standard deviation value |
wrapped_param_type fcppt::random::distribution::parameters::normal< IntType >::convert_from | ( | ) | const |
|
static |