Load.data: A helper function to find the amplitudes by finding the peaks...

Description Usage Arguments Examples

View source: R/data_functions.R

Description

This function finds the peaks and antimodes by way of distribution density estimation. It may be convenient to think of this function as finding the global and local maxima and the local minima of a data vector. Note that the global minimum is asymptotically zero ("0")from based on distribution theory; for practical purposes, double checking the global minimum is good practice. Just run ("min(x))")

Usage

1
amps(x)

Arguments

x

Data vector.

Examples

1
2
#data<-c(rnorm(15,0,1),rnorm(21,5,1))
#amps(data)

sathish-deevi/Roads-Package documentation built on May 29, 2019, 2:59 p.m.