find_peak: Returns the index of the nearest peak

Description Usage Arguments Value

View source: R/peak_pick.R

Description

Calculates the gradient at the given index and then travels along the line in the upwards direction until a peak is found

Usage

1
find_peak(x, y, ind)

Arguments

x

Vector of x-values

y

Vector of y-values

ind

Index to start peak search

Value

integer index of peak


SPOMAN/osc documentation built on May 14, 2019, 7:41 a.m.