PeakDetect

PeakDetect[data]
gives a binary list in which 1s correspond to peak positions in data.

PeakDetect[data,σ]
detects peaks that survive Gaussian blurring up to scale σ.

PeakDetect[data,σ,s]
detects peaks with minimum sharpness s.

PeakDetect[data,σ,s,t]
detects only peaks with values greater than t.

PeakDetect[data,σ,{s,σs},{t,σt}]
uses different scales for thresholding sharpness and value.

Details and OptionsDetails and Options

  • PeakDetect finds local maxima using the given constraints.
  • PeakDetect[data] automatically chooses constraints to return a set of peaks.
  • Input data can be of one of the following forms:
  • {y1,y2,}a list of values
    TimeSeries[]regularly sampled time series object
    EventSeries[]regularly sampled event series object
  • PeakDetect[data,0,0,-] returns all the peaks.
  • PeakDetect[data,σ,s,t] is equivalent to PeakDetect[data,σ,{s,σ},{t,0}].
  • PeakDetect takes a Padding option. By default, Padding->"Reversed" is used.
Introduced in 2014
(10.0)