Beta mean and variance
M = distfun_betastat ( a , b ) [M,V] = distfun_betastat ( a , b )
a 1x1 or nxm matrix of doubles, the first shape parameter. Should be positive.
a 1x1 or nxm matrix of doubles, the first shape parameter. Should be positive.
a matrix of doubles, the mean
a matrix of doubles, the variance
Computes statistics from the Beta distribution.
The mean and variance of the Beta distribution are
Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.