-
Notifications
You must be signed in to change notification settings - Fork 8
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
Unusual behavior of peakprom? #4
Comments
halleysfifthinc
added a commit
that referenced
this issue
Feb 28, 2020
Previously, we didn't check if the less-than comparison between 2 elements was false because they were equal, this erroneously added peaks in every window due to the default of `peak = true`. Added checks to avoid comparing an element with itself, and checks to treat equality between different elements as not a peak.
halleysfifthinc
added a commit
that referenced
this issue
Feb 29, 2020
Previously, we didn't check if the less-than comparison between 2 elements was false because they were equal, this erroneously added peaks in every window due to the default of `peak = true`. Added checks to avoid comparing an element with itself, and checks to treat equality between different elements as not a peak.
Good catch! I've got a PR in progress, and I should release a new version in a couple days. |
Thanks! |
halleysfifthinc
added a commit
that referenced
this issue
Feb 29, 2020
Previously, we didn't check if the less-than comparison between 2 elements was false because they were equal, this erroneously added peaks in every window due to the default of `peak = true`. Added checks to avoid comparing an element with itself, and checks to treat equality between different elements as not a peak.
halleysfifthinc
added a commit
that referenced
this issue
Feb 29, 2020
Previously, we didn't check if the less-than comparison between 2 elements was false because they were equal, this erroneously added peaks in every window due to the default of `peak = true`. Added checks to avoid comparing an element with itself, and checks to treat equality between different elements as not a peak.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maxima of an array of all zeros is
instead of
(Int64[], Float64[])
.The text was updated successfully, but these errors were encountered: