Learn R Programming

WaveletComp (version 1.0)

ridge: Ridge of a wavelet power or coherence spectrum

Description

It finds the ridge of a wavelet power or coherence spectrum, subject to criteria concerning: the band of neighboring values to be included in the search area for local maximization, and a scale factor applied to the global maximum defining a minimum level constraint.

This code is an efficient implementation of the basic concept of ridge determination by Huidong Tian and Bernard Cazelles (archived R package WaveletCo).

Usage

ridge(wavelet.spectrum, band = 5, scale.factor = 0.1)

Arguments

wavelet.spectrum
wavelet power or coherence spectrum in the time/frequency domain
band
lower/upper band of neighboring values in the frequency domain used in the search for local maxima. Default: 5.
scale.factor
a scale factor applied to the global maximum defining a minimum level constraint. Default: 0.1.

Value

A matrix of zeros and ones is returned which determines the course of wavelet power or coherence ridge in the time/frequency domain.

References

Tian, H., and Cazelles, B., 2012. WaveletCo. Available at http://cran.r-project.org/src/contrib/Archive/WaveletCo/, archived April 2013; accessed July 26, 2013.