Export (0) Print
Expand All

exponential_distribution::exponential_distribution

Constructs the distribution.

explicit exponential_distribution(RealType lambda = 1.0);

explicit exponential_distribution(const param_type& parm);

lambda

The lambda distribution parameter.

parm

The parameter package used to construct the distribution.

Precondition: 0.0 < lambda

The first constructor constructs an object whose stored lambda value holds the value lambda.

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