<< distfun_exprnd Exponential Gamma >>

Distfun >> Exponential > distfun_expstat

distfun_expstat

Exponential mean and variance

Calling Sequence

[M,V] = distfun_expstat ( mu )

Parameters

mu :

a matrix of doubles, the average. Must be positive.

M :

a matrix of doubles, the mean

V :

a matrix of doubles, the variance

Description

This function computes the mean and the variance of the Exponential distribution.

The mean and variance of the Exponential distribution are

Notice that mu, the average, is the inverse of the rate. Other computing languages (including R), use 1/mu as the parameter of the exponential distribution.

Examples

[M,V] = distfun_expstat([1 10 100 1000])

Authors

Bibliography

Wikipedia, Exponential distribution function, http://en.wikipedia.org/wiki/Exponential_distribution

<< distfun_exprnd Exponential Gamma >>