Friday 20 November 2020

How to stack a kernel above each point on a regular grid with Python?

The idea is to stack a kernel above each point scattered along 1D. Specifically, the peak of the kernel is align/ centered to x-axis point each of the point. This is akin to Kernel Density Estimation except only half of the kernel is stacked at each of the point as shown at the picture below.

enter image description here

Ultimately, the summation of each of density will be calculated and will yield a single curve (i.e., gray line) as shown below.

As a starting point, I had dig around the Kernel Density Estimation of scikit learn module for an idea. However, I fail to find any line on how/where the stack they kernel on top each of point.

Really appreciate if someone can provide a good reading material for me to achieve this objective.

enter image description here



from How to stack a kernel above each point on a regular grid with Python?

No comments:

Post a Comment