Exponential mean and variance
[M,V] = distfun_expstat ( mu )
a matrix of doubles, the average. Must be positive.
a matrix of doubles, the mean
a matrix of doubles, the variance
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.
Wikipedia, Exponential distribution function, http://en.wikipedia.org/wiki/Exponential_distribution