tommyod / KDEpy

Kernel Density Estimation in Python
https://kdepy.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
580 stars 91 forks source link

SPherical KDE #158

Open karim416 opened 11 months ago

karim416 commented 11 months ago

Hi, Thank you for this very useful package. I'm wondering if it's possible to estimate the kde on a unit sphere data, i.e. the custom grid is defined by the following:

def create_grid(B=16) : Theta = np.linspace(0, 360, 2B + 1) np.pi / 180 Phi = np.linspace(0, 180, 2B + 1) np.pi / 180 [T,P] = np.meshgrid(Theta,Phi)

    return T,P
tommyod commented 11 months ago

There is currently no support for this. However, I would accept a PR if the implementation is clean and good.