Peaks.jl contains peak (local extrema) finding functions for vector data. Contributions welcome.
-
argmaxima
/argminima
- Find the indices of the local extrema of
x
where each extrema is either the maximum ofx[-w:w]
or the first index of a plateau. Ifstrictbounds
istrue
, all elements ofx[-w:w]
must exist and may not bemissing
orNaN
. Ifstrictbounds
isfalse
, elements ofx[-w:w]
may not exist (eg peaks may be less thanw
indices from either end ofx
), or may bemissing
orNaN
. - Supports OffsetArrays
- See docstring for more information
- Find the indices of the local extrema of
-
findmaxima
/findminima
=> (indices, values)- Return the indices and values of local extrema
-
peakprom
- Find all local extrema and peak prominences in
x
matching the conditionsw
andminprom
.w
sets the minimum allowed distance between extrema.minprom
sets the minimum prominence (inclusive) of returned extrema. Peak prominence is calculated as the difference between the current extrema and the most extreme of the smallest extrema of the lower and upper bounds. Bounds extend from the current extrema to the next element more extreme than the current extrema, or the end of the signal, which ever comes first. - See docstring for more information
- Find all local extrema and peak prominences in
- Images.jl
findlocalmaxima
/findlocalminima
- Supports more than 1 dimension
- Doesn't support
missing
, different window sizes