peaksign2: Find Peaks and Troughs 2

View source: R/find_peaks.R

peaksign2R Documentation

Find Peaks and Troughs 2

Description

My version, starting from Brian Ripley's and informed by all the others

Usage

peaksign2(series, span = 3, do.pad = TRUE)

Arguments

series

the vector of numbers to find peaks in.

span

the window size to use when looking for lower values.

do.pad

should the result be padded to the input series length? Default is TRUE.

Value

return (-1 / 0 / 1) if series[i] is ( trough / "normal" / peak )


yadbor/bluer documentation built on Jan. 31, 2023, 7:44 p.m.