Description Usage Arguments Details Value Note Author(s) References See Also Examples
Generates a wavelet transform filter.
1 |
filter |
A character string indicating which wavelet transform filter to compute or a numeric vector of wavelet (high pass) filter coefficients (not scaling (low pass) coefficients). If a numeric vector is supplied, the length must be even. |
modwt |
A logical value indicating whether to compute the maximal overlap discrete wavelet transform filter. |
level |
An integer value indicating the level of the wavelet filter to compute. |
The character strings currently supported are derived from one of four
classes of wavelet transform filters: Daubechies, Least Asymetric,
Best Localized and Coiflet. The prefixes for filters of these classes
are d
, la
, bl
and c
,
respectively. Following the prefix, the filter name consists of an
integer indicating length. Supported lengths are as follows:
2,4,6,8,10,12,14,16,18,20.
8,10,12,14,16,18,20.
14,18,20.
6,12,18,24,30.
Thus, to obtain the Daubechies wavelet transform filter of length 4,
the character string "d4"
can be passed to
wt.filter
.
This naming convention has one exception: the Daubechies wavelet
transform filter of length 2 is denoted by haar
instead of
d2
.
Returns an object of class wt.filter
, which is an S4 object
with slots
L |
An integer representing the length of the wavelet and scaling filters. |
h |
A numeric vector of wavelet filter coefficients. |
g |
A numeric vector of scaling filter coefficients. |
wt.class |
A character string indicating the class of the wavelet
transform filter. Possible values are |
wt.name |
A character string indicating the name of the wavlet
filter as listed in the Details section, above. If the
|
transform |
A character string indicating whether the resulting
wavelet transform object contains DWT or MODWT coefficients. Possible
values are |
The notation h
and g
for wavelet and scaling
coefficients, respectively, follows Percival and Walden (2000). In
other texts and articles the reverse notation is often adopted.
Eric Aldrich. ealdrich@gmail.com.
Percival, D. B. and A. T. Walden (2000) Wavelet Methods for Time Series Analysis, Cambridge University Press.
1 2 3 |
An object of class "wt.filter"
Slot "L":
[1] 14
Slot "level":
[1] 1
Slot "h":
[1] 0.002681815 0.001047385 -0.012636303 -0.030515513 0.067892694
[6] 0.049552835 0.017441255 -0.536101917 0.767764317 -0.288629632
[11] -0.140047240 0.107808238 0.004010245 -0.010268177
Slot "g":
[1] 0.010268177 0.004010245 -0.107808238 -0.140047240 0.288629632
[6] 0.767764317 0.536101917 0.017441255 -0.049552835 0.067892694
[11] 0.030515513 -0.012636303 -0.001047385 0.002681815
Slot "wt.class":
[1] "Least Asymmetric"
Slot "wt.name":
[1] "la14"
Slot "transform":
[1] "dwt"
An object of class "wt.filter"
Slot "L":
[1] 10
Slot "level":
[1] 1
Slot "h":
[1] 1 2 3 4 5 6 7 8 9 10
Slot "g":
[1] -10 9 -8 7 -6 5 -4 3 -2 1
Slot "wt.class":
[1] "none"
Slot "wt.name":
[1] "none"
Slot "transform":
[1] "modwt"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.