https://medium.com/@monocosmo77/how-kernel-density-estimation-works-part1-machine-learning-9999f5bcacd8