lpeak: lpeak

Description Usage Arguments Value Examples

View source: R/lpeak.R

Description

This function allows you to locate where are peaks of a waveform and return a list of TRUE and FALSE TRUE represents this location is the peak.

Usage

1
lpeak(series, span = 3)

Arguments

series

is the input a numeric vector.

span

is the length or interval of peak finding cell, default is 3.

Value

return a boolean type data corresponding to the numeric vector.

Examples

1
2
3
4
5
6
data(return)
w1<-return[1,]
#w1 is numeric values represnt an waveform.
lpeak(w1,3)
w2<-return[3,]
lpeak(w2,5)

tankwin08/waveformlidar documentation built on Sept. 26, 2020, 10:05 p.m.