<< distfun_poissrnd Poisson Support >>

Distfun >> Distfun > Poisson > distfun_poissstat

distfun_poissstat

Poisson mean and variance

Calling Sequence

M = distfun_poissstat(lambda)
[M,V] = distfun_poissstat(lambda)

Parameters

lambda :

a matrix of doubles, the average rate of occurrence. lambda>0.

M :

a matrix of doubles, the mean

V :

a matrix of doubles, the variance

Description

Computes statistics from the Poisson 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 Poisson Distribution are

Examples

// Test with expanded lambda
[m,v] = distfun_poissstat((1:6))
me = [ 1 2 3 4 5 6 ];
ve = [ 1 2 3 4 5 6 ];

//Accuracy test
lambda = [ 11 22 33 ];
[M,V] = distfun_poissstat ( lambda )
ve = [ 11 22 33 ];
me = [ 11 22 33 ];

Bibliography

http://en.wikipedia.org/wiki/Poisson_distribution

Authors


Report an issue
<< distfun_poissrnd Poisson Support >>