Binomial mean and variance
M = distfun_binostat(N,pr) [M,V] = distfun_binostat(N,pr)
a matrix of doubles, the probability of getting success in a Bernoulli trial. pr in [0,1].
a matrix of doubles , the total number of binomial trials . N belongs to the set {1,2,3,4,.......}
a matrix of doubles, the mean
a matrix of doubles, the variance
Computes statistics from the Binomial 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 Binomial Distribution is:
http://en.wikipedia.org/wiki/Binomial_distribution