putC.wst | R Documentation |
Makes a copy of the wst
object, replaces a whole resolution level of father wavelet coefficients data in the copy, and then returns the copy.
## S3 method for class 'wst'
putC(wst, level, value, ...)
wst |
Packet-ordered non-decimated wavelet object into which you wish to insert the father wavelet coefficients. |
level |
the resolution level at which you wish to replace the father wavelet coefficients. |
value |
the replacement data, this should be of the correct length. |
... |
any other arguments |
The function accessC.wst
obtains the father wavelet coefficients for a particular level. The function putC.wst
replaces father 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 accessC.wst
to extract whole resolution levels of father wavelet coefficients. Use accessD.wst
and putD.wst
to extract/insert whole resolution levels of mother wavelet coefficients. Use the getpacket.wst
and putpacket.wst
functions to extract/insert packets of coefficients into a packet-ordered non-decimated wavelet object.
A wst
class object containing the modified father wavelet coefficients
Version 3.5.3 Copyright Guy Nason 1994
G P Nason
wst.object
, wst
, putC
, accessD.wst
, putD.wst
, getpacket.wst
, putpacket.wst
.
#
# Generate an EMPTY wst object:
#
zero <- rep(0, 16)
zerowst <- wst(zero)
#
# Put some random father 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 <- putC( zerowst, level=2, v=rnorm(16))
#
# If you use accessC on mod.zerowd you would see that there were only
# coefficients at resolution level 2 where you just put the coefficients.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.