Exponential mean and variance
[m,v] = expstat(mu)
[m,v] = expstat(mu)
returns
the mean of and variance for the exponential distribution with parameters mu
. mu
can
be a vectors, matrix, or multidimensional array. The mean of the exponential
distribution is µ, and the variance is µ2.
[m,v] = expstat([1 10 100 1000]) m = 1 10 100 1000 v = 1 100 10000 1000000