Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/wt.filter.qmf.R
Computes the quadrature mirror filter of a series of even length.
1 | wt.filter.qmf(x, inverse=FALSE)
|
x |
A numeric vector of even length |
inverse |
A logical flag indicating whether to compute the inverse quadrature mirror filter. |
The quadrature mirror filter is computed as outlined in Percival and Walden, page 75. Specifically, the forward QMF makes use of a wavelet filter to obtain a scaling filter and the inverse QMF does the opposite.
A numeric vector which contains the values of x
in reverse
order, with the values of the resulting vector at even indices being
negated in the case that inverse=FALSE
and the values at odd
indices being negated in the case that inverse=TRUE
.
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 4 5 6 | # obtain both the la8 wavelet and scaling filters
la8 <- wt.filter("la8")
# now compare output of qmf with values in wt.filter object
wt.filter.qmf(la8@h)
la8@g
|
[1] -0.07576571 -0.02963553 0.49761867 0.80373875 0.29785780 -0.09921954
[7] -0.01260397 0.03222310
[1] -0.07576571 -0.02963553 0.49761867 0.80373875 0.29785780 -0.09921954
[7] -0.01260397 0.03222310
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.