halleysfifthinc / Peaks.jl

Find peaks (local extrema) of signals
https://halleysfifthinc.github.io/Peaks.jl/
MIT License
75 stars 8 forks source link

Unusual behavior of peakprom? #4

Closed ymtoo closed 4 years ago

ymtoo commented 4 years ago

Maxima of an array of all zeros is

julia> peakprom(zeros(10), Maxima())
([2, 4, 6, 8], [0.0, 0.0, 0.0, 0.0])

instead of (Int64[], Float64[]).

halleysfifthinc commented 4 years ago

Good catch! I've got a PR in progress, and I should release a new version in a couple days.

ymtoo commented 4 years ago

Thanks!