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 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.

Examples

open allclose all

Basic Examples  (1)

Find dominant peaks in a list:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Visualize detected peaks:

In[3]:=
Click for copyable input
Out[3]=

Scope  (12)

Options  (1)

Applications  (3)

Possible Issues  (1)

See Also

FindPeaks  EstimatedBackground  MaxDetect  MinDetect  DerivativeFilter  GradientFilter

Introduced in 2014
(10.0)