Peaks.jl contains peak (local extrema) finding functions for vector data. Contributions welcome.
xwhere each extrema is either the maximum of
x[-w:w]or the first index of a plateau. If
true, all elements of
x[-w:w]must exist and may not be
false, elements of
x[-w:w]may not exist (eg peaks may be less than
windices from either end of
x), or may be
findminima => (indices, values)
xmatching the conditions
wsets the minimum allowed distance between extrema.
minpromsets 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.
7 days ago