<< distfun_normrnd Normal Poisson >>

Distfun >> Distfun > Normal > distfun_normstat

distfun_normstat

Normal mean and variance

Calling Sequence

M = distfun_normstat ( mu , sigma )
[M,V] = distfun_normstat ( mu , sigma )

Parameters

mu :

a matrix of doubles, the average

sigma :

a matrix of doubles, the standard deviation. sigma>0.

M :

a matrix of doubles, the mean

V :

a matrix of doubles, the variance

Description

Computes statistics from the Normal distribution.

The mean and variance of the Normal distribution are

Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.

Examples

mu = 1:6;
sigma = 7:12;
[M,V] = distfun_normstat ( mu , sigma )
me = 1:6;
ve = [49. 64. 81. 100. 121. 144.];

Authors


Report an issue
<< distfun_normrnd Normal Poisson >>