<< distfun_unidrnd Uniform Discrete Uniform >>

Distfun >> Distfun > Uniform Discrete > distfun_unidstat

distfun_unidstat

Uniform Discrete mean and variance

Calling Sequence

M = distfun_unidstat ( N )
[M,V] = distfun_unidstat ( N )

Parameters

N :

a matrix of doubles, the upper bound (with N>=1)

M :

a matrix of doubles, the mean

V :

a matrix of doubles, the variance

Description

Computes statistics from the Uniform distribution.

The mean and variance of the Uniform distribution are

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

Examples

N = 2:7;
[M,V] = distfun_unidstat ( N )
me = [1.5    2.    2.5    3.    3.5    4.];
ve = [0.25    0.6666667    1.25    2.    2.9166667    4.];

Authors


Report an issue
<< distfun_unidrnd Uniform Discrete Uniform >>