Efficient sample density estimation by combining gridding and an optimized kernel | Synapse