Histogram mean and variance
M=distfun_histostat(h) [M,V]=distfun_histostat(h)
an histogram object
a matrix of doubles, the mean
a matrix of doubles, the variance
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.