|
0.12.0
|
|
Freundlich's C++ toolkit |
A wrapper around a normal distribution.
Wraps a normal 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 | mean |
| typedef float_type | sigma |
Public Member Functions | |
| FCPPT_STATIC_ASSERT_STATEMENT (boost::is_floating_point< float_type >::value) | |
| normal (mean _mean, sigma _sigma) | |
| Constructs a normal distribution. | |
Public Attributes | |
| FCPPT_RANDOM_DISTRIBUTION_DECLARE_CALL | |
| typedef FloatType fcppt::random::distribution::normal< FloatType >::float_type |
The float type used.
| typedef float_type fcppt::random::distribution::normal< FloatType >::mean |
| typedef wrapped::result_type fcppt::random::distribution::normal< FloatType >::result_type |
The result returned by drawing random numbers.
| typedef float_type fcppt::random::distribution::normal< FloatType >::sigma |
| fcppt::random::distribution::normal< FloatType >::normal | ( | mean | _mean, |
| sigma | _sigma | ||
| ) |
Constructs a normal distribution.
Constructs the normal distribution from _mean and _sigma.
| _mean | The mean value |
| _sigma | The sigma value |
| fcppt::random::distribution::normal< FloatType >::FCPPT_STATIC_ASSERT_STATEMENT | ( | boost::is_floating_point< float_type >::value | ) |
| fcppt::random::distribution::normal< FloatType >::FCPPT_RANDOM_DISTRIBUTION_DECLARE_CALL |
1.8.2