imwd
.## S3 method for class 'imwd':
threshold(imwd, levels=3:(wd$nlevels-1), type="hard",
policy="universal", by.level=FALSE, value=0, dev=var,
verbose=FALSE, return.threshold=FALSE, compression=T)
"imwd"
, typically from a wavelet
decomposition using the imwd
function.FALSE
then a global threshold is
applied to all the levels specified by levels
,
otherwise a threshold is computed and applied separately to each level."manual"
policy
, or the user-supplied quantile level for the
"probability"
policy.var
is to use the
variance, but you can insert your own measure of deviance.threshold()
spurts informative
messages at you.compression
is true then an object of class "imwdc"
that has been thresholded and compressed,
otherwise an uncompressed, but thresholded object of class "imwd"
.imwd
wavelet
decomposition object. The modification can be performed either
with a "hard" or "soft" thresholding selected by the type
argument.See the ``Details'' section of threshold.wd
for an
explanation of thresholding types and policies.The thresholding process forces many coefficients to zero. From release 2.2
onwards the thresholded "imwd" object is compressed by compress
and returned as a much smaller "imwdc" object. An "imwdc" object is
easily converted into an "imwd" object by uncompress
, but
all relevant functions will handle the "imwdc" object.Note that the coefficients for the horizontal, diagonal and vertical
detail at a particular level are treated as one. In future releases
we may add the capability to treat the details differently, although
this would increase the complexity of the argument specification.This function is a method for the generic function
threshold()
for class imwd
.
It can be invoked by calling threshold(x)
for an
object x
of the appropriate class, or directly by
calling threshold.imwd(x)
regardless of the
class of the object.
wd
for a list.imwr.imwd
.
imwr
, imwd
, compress
,
uncompress
, imwd.object
,
imwdc.object