peaks: Peaks

Description Usage Arguments Details Value Author(s) Examples

Description

Find peak amplitudes in a time series signal.

Usage

1
peaks(series, span = 3, do.pad = TRUE)

Arguments

series

signal

span

span for window

do.pad

padding

Details

This function originated in a note from Brian Ripley.

Value

vector of peak indexes

Author(s)

Brian Ripley

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(CE1)
plot(CE1$x, CE1$y, type='l')


pp <- seq(from=53, to=80, by=1)

plot(CE1$x[pp], CE1$y[pp], type='l')


aa <- peaks(CE1$y[pp], span=3)


abline(v=CE1$x[pp[aa]], col='red')

RSEIS documentation built on May 29, 2017, 10:38 p.m.

Search within the RSEIS package
Search all R packages, documentation and source code