WaveThresh Help - putC

Put smoothed data (father wavelet) coefficients into wavelet structure

DESCRIPTION:

Makes a copy of the wd object, replaces some smoothed data in the copy, and then returns the copy.

USAGE:

putC(wd, level, v, boundary=F)

REQUIRED ARGUMENTS:

wd
wd class object that is to be copied and have smoothed data (father wavelet coefficients) replaced
level
The level at which the replacement is to take place
v
The replacement data, this should be of the correct length.

OPTIONAL ARGUMENTS:

boundary
If boundary is F then only the "real" data is replaced (and it is easy to predict the required length of v). If boundary is T then you can replace the boundary values at a particular level as well (but it is hard to predict the required length of v, and the information has to be obtained from the first.last database component of wd).

This argument has no meaning if the wd object was obtained with the bc periodic boundary handling method.

VALUE:

A wd class object containing the replaced data.

SIDE EFFECTS:

None

DETAILS:

The function "accessC" obtains the smoothed data for a particular level. The function "putC" replaces data at a particular level and returns a modified wd object reflecting the change.

This function is probably not particularly useful, but it is present for completeness. It is required because of the pyramidal nature of the smoothed data points being packed into a vector.

RELEASE:

Version 3.5.3 Copyright Guy Nason 1994

SEE ALSO:

`wd.object', `accessC'

EXAMPLES:

#
# Put the numbers 1:64 into level 6
#
> new <- putC(old, level=6, v=1:64, boundary=F)
#
# If you look at the C component of new, you will see that
# some numbers have changed at the appropriate position.
#
Wavelets Home Page

G.P.Nason@bristol.ac.uk