Learn R Programming

wavScalogram (version 1.1.3)

wavelet_radius: Wavelet radius

Description

This function computes an approximation of the effective radius of a mother wavelet.

Usage

wavelet_radius(wname = c("MORLET", "DOG", "PAUL", "HAAR", "HAAR2"),
                      wparam = NULL,
                      perc = .0025,
                      scale = 100,
                      n = 1000,
                      makefigure = FALSE)

Value

A list with the following fields:

  • left: The radius on the left.

  • right: The radius on the right.

Arguments

wname

A string, equal to "MORLET", "DOG", "PAUL", "HAAR" or "HAAR2". The difference between "HAAR" and "HAAR2" is that "HAAR2" is more accurate but slower.

wparam

The corresponding nondimensional parameter for the wavelet function (Morlet, DoG or Paul).

perc

Numeric. The wavelet radius is computed so that the area covered is at least the 100*(1-perc)% of the total area of the mother wavelet.

scale

Numeric. Scale of the wavelet used in the computations. It only affects the accuracy.

n

Numeric. The computations use a time series of length \(2n+1\).

makefigure

Logical. Plots a figure with the real part of the mother wavelet and its modulus.

Examples

Run this code
waverad <- wavelet_radius(wname = "MORLET", makefigure = TRUE)

Run the code above in your browser using DataLab