Learn R Programming

gmwm (version 2.0.0)

brick_wall: Removal of Boundary Wavelet Coefficients

Description

Removes the first n wavelet coefficients.

Usage

brick_wall(x, wave_filter, method)

Arguments

x
A field that contains the nlevel decomposition using either modwt or dwt.
wave_filter
A field containing filter information. Only "haar" is implemented.
method
A string to describe the mode. Choose between "modwt" and "dwt"

Value

A field with boundary modwt or dwt taken care of.

Details

The vectors are truncated by removing the first n wavelet coefficients. These vectors are then stored into the field that is returned. Note: As a result, there are no NA's introduced and hence the na.omit is not needed.

Examples

Run this code
x = rnorm(100)
me = modwt_cpp(x, filter_name = "haar", nlevels = 4, boundary = "periodic", brickwall = FALSE)
brick_wall(me, select_filter("haar"), "modwt")

Run the code above in your browser using DataLab