absl::exponential_distribution

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

NameDescription
param_type The parameter set of the distribution.

Type Aliases

NameDescription
result_type The type of the values produced by the distribution.

Member Functions

NameDescription
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

NameDescription
absl::operator!=Compares two distributions for inequality.
absl::operator==Compares two distributions for equality.