68
68
printf("time for univariate kernel density example using %d data points and %d compute nodes: %f\n", n, nodes, t1);
69
69
printf("A rough integration under the fitted univariate density is %f\n", sum(dens)*stepsize);
71
plot(grid_x, dens, ";fitted density;", grid_x, chisquare_pdf(grid_x,3), ";true density;");
71
plot(grid_x, dens, ";fitted density;", grid_x, chi2pdf(grid_x,3), ";true density;");
72
72
title("Example 2: Kernel density fit: Univariate Chi^2(3) data");
74
74
############################################################