Density Histograms to Density Functions