powered by
Developed by William A. Huber
peakid(x, y, w = 1, ...)
Vector of x values of input data
x
Vector of y values of input data
y
Window size for smoothing data
Additional arguments to be passed into LOESS function
A vector listing the standard deviations of propagated errors propagated on all X values.
X
package dependencies: zoo 1.8.7
Huber, W.A., Data Smoothing and Peak Detection, Rpubs, Last accessed: December 8th, 2020. https://rpubs.com/mengxu/peak_detection
https://rpubs.com/mengxu/peak_detection
# NOT RUN { # Create dummy periodic data x <- seq(1, 100, 1) y <- sin((2 * pi * (seq(1, 100, 1) - 8 + 20 / 4)) / 20) # Run peakid function result <- peakid(x, y, w = 20) # }
Run the code above in your browser using DataLab