Add Stat.density for kernel density estimation.