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

Link to this function cdf()
cdf() :: (... -> any())

The cumulative density function

Examples

iex> Statistics.Distributions.Exponential.cdf().(1)
0.6321205588285577
Link to this function cdf(lambda)
cdf(number()) :: (... -> any())
Link to this function pdf()
pdf() :: (... -> any())

The probability density function

Examples

iex> Statistics.Distributions.Exponential.pdf().(1)
0.36787944117144233
Link to this function pdf(lambda)
pdf(number()) :: (... -> any())
Link to this function ppf()
ppf() :: (... -> any())

The percentile-point function

Examples

iex> Statistics.Distributions.Exponential.ppf().(0.1)
0.10536051565782628
Link to this function ppf(lambda)
ppf(number()) :: (... -> any())
Link to this function rand()
rand() :: number()

Draw a random number from the distribution with specified lambda

Uses the rejection sampling method

Examples

iex> Statistics.Distributions.Exponential.rand()
0.145709384787
Link to this function rand(lambda)
rand(number()) :: number()