A tutorial on kernel density estimation and recent advances | Synapse