-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
violin
: handle zero standard deviation
#3625
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
Conversation
span = cdi.span = [cdi.min, cdi.max]; | ||
cdi.density = [{v:1, t: span[0]}]; | ||
maxKDE = Math.max(maxKDE, 1); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What follows is exactly the same code we had before.
Much better 🍻 |
Right... I was approaching this the wrong way. Closing in favor of #3626 |
Closes issue #3622
This is by far the most concise way I could fix the issue. I only added 4 lines to
src/traces/violin/calc.js
(starting from line 38).