Local Maxima
This function finds local maxima in a numeric vector. A local maximum is
defined as maximum in a window of the current index +/- hws
.
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()
x <- c(1:5, 4:1, 1:10, 9:1, 1:5, 4:1) localMaxima(x) localMaxima(x, hws = 10)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.