Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::random::normal_distribution< RealType >::param_type Class Reference

#include <normal_distribution.hpp>

Public Types

typedef normal_distribution distribution_type
 

Public Member Functions

 param_type (RealType mean_arg=RealType(0.0), RealType sigma_arg=RealType(1.0))
 Constructs a param_type with a given mean and standard deviation. More...
 
RealType mean () const
 Returns the mean of the distribution. More...
 
RealType sigma () const
 Returns the standand deviation of the distribution. More...
 
 BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (os, param_type, parm)
 Writes a param_type to a std::ostream. More...
 
 BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR (is, param_type, parm)
 Reads a param_type from a std::istream. More...
 
 BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR (param_type, lhs, rhs)
 Returns true if the two sets of parameters are the same. More...
 

Member Typedef Documentation

template<class RealType = double>
typedef normal_distribution boost::random::normal_distribution< RealType >::param_type::distribution_type

Constructor & Destructor Documentation

template<class RealType = double>
boost::random::normal_distribution< RealType >::param_type::param_type ( RealType  mean_arg = RealType(0.0),
RealType  sigma_arg = RealType(1.0) 
)
inlineexplicit

Constructs a param_type with a given mean and standard deviation.

Requires: sigma >= 0

Referenced by boost::random::normal_distribution< result_type >::param().

Member Function Documentation

template<class RealType = double>
boost::random::normal_distribution< RealType >::param_type::BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR ( param_type  ,
lhs  ,
rhs   
)
inline

Returns true if the two sets of parameters are the same.

template<class RealType = double>
boost::random::normal_distribution< RealType >::param_type::BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR ( is  ,
param_type  ,
parm   
)
inline

Reads a param_type from a std::istream.

template<class RealType = double>
boost::random::normal_distribution< RealType >::param_type::BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR ( os  ,
param_type  ,
parm   
)
inline

Writes a param_type to a std::ostream.

template<class RealType = double>
RealType boost::random::normal_distribution< RealType >::param_type::mean ( ) const
inline

Returns the mean of the distribution.

template<class RealType = double>
RealType boost::random::normal_distribution< RealType >::param_type::sigma ( ) const
inline

Returns the standand deviation of the distribution.


The documentation for this class was generated from the following file: