TITLE(putD @@ Put wavelet coefficients into wavelet structure )
Makes a copy of the wd object, replaces some wavelet coefficients
into the copy, and then returns the copy.
USAGE(
putD(wd, level, v, boundary=F)
)
ARGUMENTS(
ARG(wd@@)
wd class object that is to be copied, have wavelet coefficients replaced
and then returned.
ARG(level@@)
The level at which replacement is to take place.
ARG(v@@)
The replacement coefficients, this should be of the correct length.
ARG(boundary@@)
If boundary is F then only the "real" coefficients are replaced
(and it is easy to predict the required length of the v, just the
correct power of 2). If boundary=T then you can replace the boundary
coefficients as well (but it is hard to predict the required length
of v, and the information has to be extracted from the first.last
database component of wd).
This argument has no meaning if the wd object was obtained using periodic
boundary handling.
)
PARA BOLD(VALUE)
A wd class object containing the replaced data.
PARA BOLD(SIDE EFFECTS)
None
The function "accessD" obtains the wavelet coefficients for a particular
level. The function "putD" replaces coefficients at a particular
level and returns a modified wd object reflecting the change.
As opposed to the utility of "putC", the "putD" function is actually
quite useful. It is fun to replace coefficients, since then you
can dream up your own functions, get pictures of the wavelets etc. etc.
PARA BOLD(RELEASE)
Release 2.2
Copyright Guy Nason 1993
PARA BOLD(SEE ALSO)
LANG(wd.object), LANG(accessD), LANG(draw)
BLANK

PARA BOLD( )
BLANK

EXAMPLES(
#
# Set all the wavelet coefficients to zero
#
> for(i in 0:(wd\$nlevels-1))
    wd <- putC(wd, level=i, v=rep(0,2^i))
)
PARA ITALIC(File automatically converted from S(-PLUS) help format)
