0.12.0
Freundlich's C++ toolkit
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Public Attributes
fcppt::random::distribution::normal< FloatType > Class Template Reference

Detailed Description

template<typename FloatType>
class fcppt::random::distribution::normal< FloatType >

A wrapper around a normal distribution.

Wraps a normal distribution, removing the default parameters of the constructor and also using strong typedefs.

Template Parameters
FloatTypeMust 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
 

Member Typedef Documentation

template<typename FloatType >
typedef FloatType fcppt::random::distribution::normal< FloatType >::float_type

The float type used.

template<typename FloatType >
typedef float_type fcppt::random::distribution::normal< FloatType >::mean
template<typename FloatType >
typedef wrapped::result_type fcppt::random::distribution::normal< FloatType >::result_type

The result returned by drawing random numbers.

template<typename FloatType >
typedef float_type fcppt::random::distribution::normal< FloatType >::sigma

Constructor & Destructor Documentation

template<typename FloatType >
fcppt::random::distribution::normal< FloatType >::normal ( mean  _mean,
sigma  _sigma 
)

Constructs a normal distribution.

Constructs the normal distribution from _mean and _sigma.

Parameters
_meanThe mean value
_sigmaThe sigma value

Member Function Documentation

template<typename FloatType >
fcppt::random::distribution::normal< FloatType >::FCPPT_STATIC_ASSERT_STATEMENT ( boost::is_floating_point< float_type >::value  )

Member Data Documentation

template<typename FloatType >
fcppt::random::distribution::normal< FloatType >::FCPPT_RANDOM_DISTRIBUTION_DECLARE_CALL