Description Usage Arguments Value Author(s) References See Also Examples
Computes the multiresolution analysis for a univariate or multivariate time series.
1 |
X |
A univariate or multivariate time series. Numeric vectors, matrices and data frames are also accepted. |
filter |
Either a |
n.levels |
An integer specifying the level of the decomposition. By default this is the value J such that the length of X is at least as great as the length of the level J wavelet filter, but less than the length of the level J+1 wavelet filter. Thus, j <= log((N-1)/(L-1)+1), where N is the length of X. |
boundary |
A character string indicating which boundary method to
use. |
fast |
A logical flag which, if true, indicates that the pyramid algorithm is computed with an internal C function. Otherwise, only R code is used in all computations. |
method |
A character string, taking values "dwt" or "modwt", that indicates which type of transform to use when computing the MRA. |
Returns an object of class mra
, which is an S4 object with
slots
D |
A list with element i comprised of a matrix containing the ith level wavelet detail. |
S |
A list with element i comprised of a matrix containing the ith level wavelet smooths. |
filter |
A |
level |
An integer value representing the level of wavelet decomposition. |
boundary |
A character string indicating the boundary method used in the wavelet decomposition. Valid values are "periodic" or "reflection". |
series |
The original time series, |
class.X |
A character string indicating the class of the input
series. Possible values are |
attr.X |
A list containing the attributes information of the
original time series, |
method |
A character string indicating which type of wavelet decomposition was performed (either "dwt" or "modwt"). |
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 7 | # obtain the two series listed in Percival and Walden (2000), page 42
X1 <- c(.2,-.4,-.6,-.5,-.8,-.4,-.9,0,-.2,.1,-.1,.1,.7,.9,0,.3)
X2 <- c(.2,-.4,-.6,-.5,-.8,-.4,-.9,0,-.2,.1,-.1,.1,-.7,.9,0,.3)
# combine them and compute MRA
newX <- cbind(X1,X2)
mra.out <- mra(newX, n.levels=3, boundary="reflection")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.