Geometric mean and variance
M = distfun_geostat(pr) [M,V] = distfun_geostat(pr)
a matrix of doubles, the probability of getting success in a Bernoulli trial. pr in (0,1].
a matrix of doubles, the mean
a matrix of doubles, the variance
Computes statistics from the Geometric distribution.
Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.
The Mean and Variance of the Geometric Distribution are
http://en.wikipedia.org/wiki/Geometric_distribution