Gamma mean and variance
M = distfun_gamstat ( a , b ) [M,V] = distfun_gamstat ( a , b )
a 1x1 or nxm matrix of doubles, the shape parameter, greater or equal to zero
a 1x1 or nxm matrix of doubles, the scale parameter, greater or equal to zero
a matrix of doubles, the mean
a matrix of doubles, the variance
Computes statistics from the Gamma distribution.
The mean and variance of the Gamma distribution are
Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.
Notice that b, the scale, is the inverse of the rate. Other computing languages (including R), use 1/b as the second parameter of the Gamma distribution.