Share via


exponential_distribution::exponential_distribution

Constructs the distribution.

explicit exponential_distribution(RealType lambda = 1.0);

explicit exponential_distribution(const param_type& parm);

Parameters

  • lambda
    The lambda distribution parameter.

  • parm
    The parameter package used to construct the distribution.

Remarks

**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.

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

exponential_distribution Class