Histogram PDF
y=distfun_histopdf(x,h)
a matrix of doubles, the outcome
an histogram object
a matrix of doubles, the density
Computes the probability distribution function of the Histogram.
The h object must be created with distfun_histocreate.
m=1000; data=distfun_normrnd(0,1,m,1); h=distfun_histocreate("data",data); x=linspace(-4,4); y=distfun_histopdf(x,h); scf(); plot(x,y) ynorm=distfun_normpdf(x,0,1); plot(x,ynorm) legend(["Histogram","Exact"]); xlabel("x") ylabel("Density")