Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/wt.filter.shift.R
Computes phase shifts for wavelet transform coefficients corresponding to a particular filter.
1 |
filter |
A |
J |
A vector of positive integers indicating levels for which to compute phase shifts. |
wavelet |
A logical flag indicating whether to compute the wavelet (high pass) or scaling (low pass) phase shift(s). |
coe |
A logical value indicating whether to use the center of energy method (see Percival and Walden 2000, page 118) to compute the phase shift(s). |
modwt |
A logical value indicating whether to compute MODWT phase shift(s). |
For wavelet filters of class 'Least Assymetric' or 'Coiflet', the default method for calculating phase shifts is outlined on pages 112-114 and page 124 of Percival and Walden 2000. For wavelet filters of class 'Best Localized', the default shifts are given on page 119 of Percival and Walden 2000. For the Haar filter, both the level j wavelet and scaling phase shifts are half the length of the level j wavelet and scaling filters and the phase shifts for the D(4) filter are determined by specifying ν = -1 in equations (114a) and (114b) of Percival and Walden 2000.
For all other filters, the center of energy method is the default
method for computing phase shifts (thus rendering the coe
argument irrelevant). If coe = TRUE
, then the center of energy
method is used regardless of filter class.
By default the DWT phase shifts are computed, using the MODWT phase
shifts and the methods outlined on pages 115-116 of Percival and
Walden 2000. If modwt = TRUE
, then only the MODWT phase shifts
are computed.
A vector of phase shifts, expressed in absolute value. Each element
corresponds to the equivalent element in J
.
Eric Aldrich. ealdrich@gmail.com.
Percival, D. B. and A. T. Walden (2000) Wavelet Methods for Time Series Analysis, Cambridge University Press.
1 | wt.filter.shift("la14", J=1:6)
|
[1] 4 5 5 6 6 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.