wd3D
class object.## S3 method for class 'wd3D':
threshold(wd3D, levels = 3:(nlevelsWT(wd3D) - 1), type = "hard", policy =
"universal", by.level = FALSE, value = 0, dev = var, verbose = FALSE,
return.threshold = FALSE, ...)
wd3D
object supplied. This is usually any integer frhard
" or "soft
".universal
" and "manual
". The policies are described in detail be
levels
. If TRUE a threshold is computed and applied separately to each scale level.policy="manual"
then value is the actual threshold value.var()
function. A powd3D
. This object contains the thresholded wavelet coefficients. Note that if the return.threshold option is set to TRUE then the threshold values will be returned rather than the thresholded object.wd3D
object and returns the coefficients in a modified wd3D
object. See the seminal papers by Donoho and Johnstone for explanations about thresholding. For a gentle introduction to wavelet thresholding (or shrinkage as it is sometimes called) see Nason and Silverman, 1994. For more details on each technique see the descriptions of each method below The basic idea of thresholding is very simple. In a signal plus noise model the wavelet transform of signal is very sparse, the wavelet transform of noise is not (in particular, if the noise is iid Gaussian then so if the noise contained in the wavelet coefficients). Thus since the signal gets concentrated in the wavelet coefficients and the noise remains "spread" out it is "easy" to separate the signal from noise by keeping large coefficients (which correspond to signal) and delete the small ones (which correspond to noise). However, one has to have some idea of the noise level (computed using the dev option in threshold functions). If the noise level is very large then it is possible, as usual, that no signal "sticks up" above the noise.
There are many components to a successful thresholding procedure. Some components have a larger effect than others but the effect is not the same in all practical data situations. Here we give some rough practical guidance, although you must refer to the papers below when using a particular technique. You cannot expect to get excellent performance on all signals unless you fully understand the rationale and limitations of each method below. I am not in favour of the "black-box" approach. The thresholding functions of WaveThresh3 are not a black box: experience and judgement are required!
Some issues to watch for:
[object Object],[object Object]
threshold
, accessD.wd3D
, print.wd3D
, putD.wd3D
, putDwd3Dcheck
, summary.wd3D
, threshold.wd3D
, wd3D.object
, wr3D
.#
# Generate some test data
#
test.data <- array(rnorm(8*8*8), dim=c(8,8,8))
testwd3D <- wd3D(test.data)
#
# Now let's threshold
#
testwd3DT <- threshold(testwd3D, levels=1:2)
#
# That's it, one can apply wr3D now to reconstruct
# if you like!
#
Run the code above in your browser using DataLab