<< distfun_histoinv Histogram distfun_histornd >>

Distfun >> Distfun > Histogram > distfun_histopdf

distfun_histopdf

Histogram PDF

Calling Sequence

y=distfun_histopdf(x,h)

Parameters

x :

a matrix of doubles, the outcome

h :

an histogram object

y :

a matrix of doubles, the density

Description

Computes the probability distribution function of the Histogram.

The h object must be created with distfun_histocreate.

Examples

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")

Authors


Report an issue
<< distfun_histoinv Histogram distfun_histornd >>