InvDWT: Inverse discrete wavelet transform

View source: R/InvDWT.R

InvDWTR Documentation

Inverse discrete wavelet transform

Description

This function performs the inverse discrete wavelet transform.

Usage

InvDWT(grove.obj, x = NULL, include.C = TRUE, sample.C = FALSE)

Arguments

grove.obj

An object of class grove.

x

A vector of the values of a predictor.

include.C

If TRUE, C is used for reconstructing the function.

sample.C

If TRUE, draws from C are used for recontructing the function.

Value

A matrix with each row representing a draw from the reconstructed signal.

Examples

data <- wavethresh::DJ.EX(n = 512, noisy = TRUE, rsnr = 5)$doppler
W <- DWT(data)
ans <- Denoise(W)
denoised.data <- InvDWT(ans)
plot(data, type = "l")
lines(denoised.data[1, ], col = "red")

jacsor/grove documentation built on Oct. 12, 2022, 8:33 p.m.