find_local_maxima: Finds peaks in a time series by using a sliding window.

Description Usage Arguments

Description

Finds peaks in a time series by using a sliding window.

Usage

1
find_local_maxima(x, npoints = 3)

Arguments

x

The vector of numbers for which to identify peaks

npoints

The number of points to either side of the local maxima.

Author: user 'stas g' on stackexchange at https://stats.stackexchange.com/questions/22974/how-to-find-local-peaks-valleys-in-a-series-of-data


kahaaga/tstools documentation built on May 24, 2019, 5:01 a.m.