1
For the details on kernel density estimation and its implementation see: Artur Gramacki, Nonparametric Kernel Density Estimation and Its Computational Aspects, Springer, 2018.