putD.wd3D | R Documentation |
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
.
## S3 method for class 'wd3D'
putD(x, v, ...)
x |
3D Wavelet decomposition object into which you wish to insert the wavelet coefficients. |
v |
This argument is a list with the following components:
|
... |
Other arguments |
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
.
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!
Version 3.9.6 Copyright Guy Nason 1997
G P Nason
accessD
, accessD.wd3D
, print.wd3D
, putD
, putDwd3Dcheck
, summary.wd3D
, threshold.wd3D
, wd3D
, wd3D.object
, wr3D
.
#
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.