estimateDensityBySpline: Estimate the density value from a sample by a spline interpolation of the
kernel density
Description
This function estimates the density at x0 by first taking a kernel
density estimate of a sample from the probability density x, and then
interpolating it by a spline.