-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug in InterpKDE #29
Comments
I've traced the undefined grid to the default boundary condition Also, the negative pdf results from the quadratic interpolation. There are several ways this can be fixed:
|
I've changed KernelDensity to use Interpolations instead of Grid. Would you mind seeing if this is still an issue? |
I'm looking into it. |
Old thread, but I believe that I'm also hitting a variant of this when deploying in the wild with some heavy tailed data: MWE:
|
Is this related? If so, there is at least a data set and two minimal working examples to reproduce this. |
I have a
kde::UnivariateKDE
which is non-negative. Constructingik = InterpKDE(kde)
results in undefined grid. Even worse, callingpdf(ik, x)
sometimes return negative values.The text was updated successfully, but these errors were encountered: