Description Usage Arguments Value Author(s) See Also Examples
This function finds local maxima in a numeric vector. A local maximum is
defined as maximum in a window of the current index +/- hws
.
1 | localMaxima(x, hws = 1L)
|
x |
|
hws |
|
A logical
of the same length as x
that is TRUE
for each local
maxima.
Sebastian Gibb
Other extreme value functions:
.peakRegionMask()
,
refineCentroids()
,
valleys()
1 2 3 | x <- c(1:5, 4:1, 1:10, 9:1, 1:5, 4:1)
localMaxima(x)
localMaxima(x, hws = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.