Export (0) Print
Expand All

normal_distribution::normal_distribution

Constructs the distribution.

explicit normal_distribution(RealType mean = 0.0, RealType stddev = 1.0);

explicit normal_distribution(const param_type& parm);

mean

The mean distribution parameter.

stddev

The stddev distribution parameter.

parm

The parameter structure used to construct the distribution.

Precondition: 0.0 ≤ stddev

The first constructor constructs an object whose stored mean value holds the value mean and whose stored stddev value holds the value stddev.

The second constructor constructs an object whose stored parameters are initialized from parm. You can obtain and set the current parameters of an existing distribution by calling the param() member function.

Header: <random>

Namespace: std

Show:
© 2014 Microsoft