find_peaks: General peak detection algorithm.

Description Usage Arguments Value

Description

find_peaks identifies the relative location of maximum values in periodic and quasi-peridodic univariate time-series. This original function was taken from https://github.com/stas-g/findPeaks/master/find_peaks.R.

Usage

1
find_peaks(x, bw)

Arguments

x

a vector of equal interval values measuring a periodic or quasi-periodic process. If not a vector of values, must be an object that can be safely cast to a single vector of temporally sequenced numeric values.

bw

the bandwidth used to define the moving window within which a "peak" is identified.

Value

Returns the sequentially ordered index values at which each "peak" is detected.


dr-consulting/ibi_VizEdit documentation built on Jan. 1, 2021, 12:04 a.m.