Description Usage Arguments Value Author(s) Examples
View source: R/detect_localmaxima.R
detect local maxima in univariate time series data
1 | detect_localmaxima(data, w = 3, boundary = "reflecting")
|
data |
a numeric vector. Length of data must be greater than 1. |
w |
window size. w must be odd and greater than 2 and smaller than double length of data. |
boundary |
determines how data points in the beginning and end of the time series will be treated. "reflecting", "r": reflecting boundary condition, "periodic", "p": periodic boundary condition, "discard", "d", discarding data points in the beginning and end of the time series. See the vignette "Introduction to scorepeak" for detail. |
a logical vector. TRUE indicates local peak. FALSE indicates not local peak.
Shota Ochi
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.