Description Usage Arguments Details Value Author(s) Examples
Find the indices of the local maxima of a vector.
A numeric vector.
The number of vector elements to look on either side of an element before considering it a local maximum.
For this function, a local maximum is defined as an element greater than all of the elements within
halfWindow elements to the left of it, and greater than or equal to all of the elements within
halfWindow elements to the right of it.
The boundaries are found by descending the local maxima until the elements are no longer non-increasing. Small increases within
halfWindow of the local maxima are ignored.
An integer vector giving the indices of the local maxima, potentially with attributes 'lower' and 'upper' if
Kylie A. Bemis
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.