PeakCalc: Calculation of peak values from sampling data

View source: R/PeakCalc.R

PeakCalcR Documentation

Calculation of peak values from sampling data

Description

From sampling data of wave, peak values are calculated and are returned as vector object. By investing three consequtive sampling data, if the increasing direction is changed the peak value is calculated from these three values.

Usage

PeakCalc(Wave)

Arguments

Wave

vector of wave sampling data

Author(s)

Shinsuke Sakai

Examples

wave<-c(5e-3,3.2e-2,3.8e-2,-3.3e-2,-1.9e-2,-1e-2,1e-3,-8e-3,-2e-2,1e-2,-1e-3,4e-3,1.1e-2,-1e-3,-7e-3,-2e-3)
PeakCalc(Wave=wave)
#Expected results
[1]  0.044858766 -0.037777941  0.001025000 -0.020964286  0.011100610 -0.001281250
[7]  0.011164474 -0.007011364

ShinsukeSakai0321/HL documentation built on July 17, 2022, 5:49 a.m.