Learn R Programming

wavethresh (version 4.7.3)

putD.wst: Puts a whole resolution level of mother wavelet coeffients into wst wavelet object.

Description

Makes a copy of the wst object, replaces a whole resolution level of mother wavelet coefficients data in the copy, and then returns the copy.

Usage

# S3 method for wst
putD(wst, level, value, ...)

Value

A wst class object containing the modified mother wavelet coefficients.

Arguments

wst

Packet-ordered non-decimated wavelet object into which you wish to insert the mother wavelet coefficients.

level

the resolution level at which you wish to replace the mother wavelet coefficients.

value

the replacement data, this should be of the correct length

...

any other arguments

RELEASE

Version 3.5.3 Copyright Guy Nason 1994

Author

G P Nason

Details

The function accessD.wst obtains the mother wavelet coefficients for a particular level. The function putD.wst replaces mother wavelet coefficients at a particular resolution level and returns a modified wst object reflecting the change.

For the non-decimated wavelet transforms the number of coefficients at each resolution level is the same and equal to 2^nlevelsWT where nlevels is the number of levels in the wst.object. The number of coefficients at each resolution level is also, of course, the number of data points used to initially form the wst object in the first place.

Use the accessD.wst to extract whole resolution levels of mother wavelet coefficients. Use accessC.wst and putC.wst to extract/insert whole resolution levels of father wavelet coefficients. Use the getpacket.wst and putpacket.wst functions to extract/insert packets of coefficients into a packet-ordered non-decimated wavelet object.

See Also

wst.object, wst, putD, accessD.wst, putC.wst, getpacket.wst, putpacket.wst.

Examples

Run this code
#
# Generate an EMPTY wst object:
#
zero <- rep(0, 16)
zerowst <- wst(zero)
#
# Put some random mother wavelet coefficients into the object at
# resolution level 2. For the non-decimated wavelet transform there
# are always 16 coefficients at every resolution level. 
#
mod.zerowst <- putD( zerowst, level=2, v=rnorm(16))
#
# If you plot mod.zerowst you will see that there are only 
# coefficients at resolution level 2 where you just put the coefficients.

Run the code above in your browser using DataLab