Description Usage Arguments Details Value References Examples
Identify local maxima in a numeric vector.
1 | peaks(x, span.abs, threshold = 0)
|
x |
a numeric vector |
span.abs |
NUMERIC the absolute number of points defining the window |
threshold |
NUMERIC only maxima above this value will be identified as peaks |
A local maximum is defined as a value larger than its
neighbours in a window defined by span.abs
. Peaks
are local maxima with values above the given threshold.
a vector of logical values, indicating whether ther is a peak at each point.
For this function we re-used code from the former CRAN
package ppc
http://statweb.stanford.edu/~tibs/PPC/Rdist/index.html
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.