<< distfun_histornd Histogram Hypergeometric >>

Distfun >> Distfun > Histogram > distfun_histostat

distfun_histostat

Histogram mean and variance

Calling Sequence

M=distfun_histostat(h)
[M,V]=distfun_histostat(h)

Parameters

h :

an histogram object

M :

a matrix of doubles, the mean

V :

a matrix of doubles, the variance

Description

Computes statistics from the histogram.

The h object must be created with distfun_histocreate.

The Mean and Variance of the Histogram Distribution are:

where

are the edges of the bins, are the heights of the histogram and are the lengths of the bins.

Examples

m=1000;
data=distfun_normrnd(0,1,m,1);
h=distfun_histocreate("data",data);
[M,V]=distfun_histostat(h)

Authors


Report an issue
<< distfun_histornd Histogram Hypergeometric >>