Instantiations of class template normal_distribution model a . More...
#include <normal_distribution.hpp>

Classes | |
| class | param_type |
Public Types | |
| typedef RealType | input_type |
| typedef RealType | result_type |
Public Member Functions | |
| normal_distribution (const RealType &mean_arg=RealType(0.0), const RealType &sigma_arg=RealType(1.0)) | |
Constructs a normal_distribution object. More... | |
| normal_distribution (const param_type &parm) | |
Constructs a normal_distribution object from its parameters. More... | |
| RealType | mean () const |
| Returns the mean of the distribution. More... | |
| RealType | sigma () const |
| Returns the standard deviation of the distribution. More... | |
| RealType min | BOOST_PREVENT_MACRO_SUBSTITUTION () const |
| Returns the smallest value that the distribution can produce. More... | |
| RealType max | BOOST_PREVENT_MACRO_SUBSTITUTION () const |
| Returns the largest value that the distribution can produce. More... | |
| param_type | param () const |
| Returns the parameters of the distribution. More... | |
| void | param (const param_type &parm) |
| Sets the parameters of the distribution. More... | |
| void | reset () |
| Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset. More... | |
| template<class Engine > | |
| result_type | operator() (Engine &eng) |
| Returns a normal variate. More... | |
| template<class URNG > | |
| result_type | operator() (URNG &urng, const param_type &parm) |
Returns a normal variate with parameters specified by param. More... | |
| BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (os, normal_distribution, nd) | |
Writes a normal_distribution to a std::ostream. More... | |
| BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR (is, normal_distribution, nd) | |
Reads a normal_distribution from a std::istream. More... | |
| BOOST_RANDOM_DETAIL_EQUALITY_OPERATOR (normal_distribution, lhs, rhs) | |
Returns true if the two instances of normal_distribution will return identical sequences of values given equal generators. More... | |
Instantiations of class template normal_distribution model a .
Such a distribution produces random numbers x distributed with probability density function
, where mean and sigma are the parameters of the distribution.
| typedef RealType boost::random::normal_distribution< RealType >::input_type |
| typedef RealType boost::random::normal_distribution< RealType >::result_type |
|
inlineexplicit |
Constructs a normal_distribution object.
mean and sigma are the parameters for the distribution.
Requires: sigma >= 0
Referenced by boost::random::normal_distribution< result_type >::operator()().
|
inlineexplicit |
Constructs a normal_distribution object from its parameters.
|
inline |
Returns the smallest value that the distribution can produce.
|
inline |
Returns the largest value that the distribution can produce.
|
inline |
Returns true if the two instances of normal_distribution will return identical sequences of values given equal generators.
|
inline |
Reads a normal_distribution from a std::istream.
|
inline |
Writes a normal_distribution to a std::ostream.
|
inline |
Returns the mean of the distribution.
|
inline |
Returns a normal variate.
|
inline |
Returns a normal variate with parameters specified by param.
|
inline |
Returns the parameters of the distribution.
Referenced by boost::random::lognormal_distribution< RealType >::param().
|
inline |
Sets the parameters of the distribution.
|
inline |
Effects: Subsequent uses of the distribution do not depend on values produced by any engine prior to invoking reset.
|
inline |
Returns the standard deviation of the distribution.