Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

idwt

Inverse Discrete Wavelet Transform


Description

Computes the inverse discrete wavelet transform for a discrete wavelet transform that was obtained from a univariate or multivariate time series.

Usage

idwt(wt, fast=TRUE)

Arguments

wt

A dwt object.

fast

A logical flag which, if true, indicates that the inverse pyramid algorithm is computed with an internal C function. Otherwise, only R code is used in all computations.

Details

The inverse discrete wavelet transform is computed via the inverse pyramid algorithm, using pseudocode written by Percival and Walden (2000), p. 101.

Value

An object with class and attributes equivalent to the original series that was used to compute the DWT. In general, the output will be equivalent to the original series (i.e. X = idwt(dwt(X))), however when thresholding or shrinkage methods are used on the dwt object, the output of idwt may differ from the original series.

Author(s)

Eric Aldrich. ealdrich@gmail.com.

References

Percival, D. B. and A. T. Walden (2000) Wavelet Methods for Time Series Analysis, Cambridge University Press.

See Also

Examples

# 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 DWT
newX <- cbind(X1,X2)
wt <- dwt(newX, n.levels=3, boundary="reflection")

# compute the inverse DWT
invX <- idwt(wt)

# compare
newX
invX

wavelets

Functions for Computing Wavelet Filters, Wavelet Transforms and Multiresolution Analyses

v0.3-0.2
GPL (>= 2)
Authors
Eric Aldrich <ealdrich@gmail.com>
Initial release
2020-02-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.