Learn R Programming

wavethresh (version 4.6.1)

putD.wd3D: Put wavelet coefficient array into a 3D wavelet object

Description

This function put an array of wavelet coefficients, corresponding to a particular resolution level into a wd wavelet decomposition object.

The pyramid of coefficients in a wavelet decomposition (returned from the wd3D function, say) are packed into a single array in WaveThresh3.

Usage

## S3 method for class 'wd3D':
putD(x, v, \dots)

Arguments

x
3D Wavelet decomposition object into which you wish to insert the wavelet coefficients.
v
This argument is a list with the following components: [object Object],[object Object],[object Object]
...
Other arguments

Value

  • A new wd3D.object is returned with the coefficients at level lev in block given by block are replaced by the contents of a, if a is of the correct dimensions!

RELEASE

Version 3.9.6 Copyright Guy Nason 1997

Details

The need for this function is a consequence of the pyramidal structure of Mallat's algorithm and the memory efficiency gain achieved by storing the pyramid as an array.

Note that this function is a method for the generic function putD.

See Also

accessD, accessD.wd3D, print.wd3D, putD, putDwd3Dcheck, summary.wd3D, threshold.wd3D, wd3D, wd3D.object, wr3D.

Examples

Run this code
#
# Generate some test data
#
a <- array(rnorm(8*8*8), dim=c(8,8,8))
#
# Perform the 3D DWT
#
awd3D <- wd3D(a)
#
# Replace the second level coefficients by uniform random variables
# in block GGG (for some reason)
#
#
newsubarray <- list(a = array(runif(4*4*4), dim=c(4,4,4)), lev=2, block="GGG")
awd3D <- putD(awd3D,  v=newsubarray)

Run the code above in your browser using DataLab