Skip to main content

Exponential

Returns the time until the next random event if the rate of events is lambda (with default value 1.0).

The probability density function is given by,

f(xλ)=λeλx.f(x |\lambda) = \lambda e^{-\lambda x}.

Constructors

Exponential(const Exponential distribution) -> Exponential

Copy constructor for Exponential distribution.

Parameters

Symbols

NameDescription
=Copy assignment operator for Exponential distribution.

Members

NameDescription
lambdaRate of events.
maxReturns the maximum possible value from the distribution
minReturns the minimum possible value from the distribution
sampleSample from distribution.