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.
pow2scales(scales)
Arguments
scales: A vector of three elements with the minimum scale, the maximum scale and the number ofsuboctaves per octave.
Returns
A vector with all the scales.
References
C. Torrence, G. P. Compo. A practical guide to wavelet analysis. B. Am. Meteorol. Soc. 79 (1998), 61–78.