Generates a number conforming to an exponential distribution.

Synopsis

Declared in <absl/random/exponential_distribution.h>

template<typename RealType = double>
class exponential_distribution;

Description

This is equivalent to the standard [rand.dist.pois.exp]distribution.

Types

Name

Description

param_type

The parameter set of the distribution.

Type Aliases

Name

Description

result_type

The type of the values produced by the distribution.

Member Functions

Name

Description

exponential_distribution [constructor]

Constructors

lambda

Returns the rate parameter.

max

Returns the largest value the distribution can produce.

min

Returns the smallest value the distribution can produce.

operator()

Function call operators

param

param overloads

reset

Resets the internal state of the distribution.

Friends

Name

Description

absl::operator!=

Compares two distributions for inequality.

absl::operator==

Compares two distributions for equality.

Created with MrDocs