Learn R Programming

wavScalogram (version 1.1.3)

pow2scales: Power 2 scales

Description

This function constructs power 2 scales (i.e. using a base 2 logarithmic scale) from a vector of three elements with the minimum scale, the maximum scale and the number of suboctaves per octave, following Torrence and Compo 1998.

Usage

pow2scales(scales)

Value

A vector with all the scales.

Arguments

scales

A vector of three elements with the minimum scale, the maximum scale and the number ofsuboctaves per octave.

References

C. Torrence, G. P. Compo. A practical guide to wavelet analysis. B. Am. Meteorol. Soc. 79 (1998), 61–78.

Examples

Run this code
scales <- pow2scales(c(2,128,8))

Run the code above in your browser using DataLab