statistics v0.5.0 Statistics.Distributions.Exponential
Exponential distribution.
lambda
is the rate parameter and must be greater than zero.
Link to this section Summary
Functions
The cumulative density function
The probability density function
The percentile-point function
Draw a random number from the distribution with specified lambda
Link to this section Functions
The cumulative density function
Examples
iex> Statistics.Distributions.Exponential.cdf().(1)
0.6321205588285577
The probability density function
Examples
iex> Statistics.Distributions.Exponential.pdf().(1)
0.36787944117144233
The percentile-point function
Examples
iex> Statistics.Distributions.Exponential.ppf().(0.1)
0.10536051565782628
Draw a random number from the distribution with specified lambda
Uses the rejection sampling method
Examples
iex> Statistics.Distributions.Exponential.rand()
0.145709384787