Usage
## S3 method for class 'mwd':
threshold(mwd, levels = 3:(nlevelsWT(mwd) - 1), type = "hard",
policy = "universal", boundary = FALSE, verbose = FALSE,
return.threshold = FALSE, threshold = 0, covtol = 1e-09,
robust = TRUE, return.chisq = FALSE,
bivariate = TRUE, ...)
Arguments
mwd
The multiple wavelet decomposition object that you wish to threshold.
levels
a vector of integers which determines which scale levels are thresholded in the decomposition. Each integer in the vector must refer to a valid level in the mwd
object supplied. This is usually any integer from type
determines the type of thresholding this can be "hard
" or "soft
".
policy
selects the technique by which the threshold value is selected. Each policy corresponds to a method in the literature. At present the different policies are "universal
", "manual
", "single
". The policies are described
boundary
If this argument is TRUE
then the boundary bookeeping values are included for thresholding, otherwise they are not.
verbose
if TRUE
then the function prints out informative messages as it progresses.
return.threshold
If this option is TRUE
then the actual value of the threshold is returned. If this option is FALSE then a thresholded version of the input is returned.
threshold
This argument conveys the user supplied threshold. If the policy="manual"
then value
is the actual threshold value. Any other policy
means that the threshold
value is ignored.
covtol
The tolerance for what constitutes a singular variance matrix. If smallest eigenvalue of the estimated variance matrix is less than covtol
then it is assumed to be singular and no thresholding is done at that level. Note: do not confuse
robust
If TRUE the variance matrix at each level is estimated using a robust method (mad) otherwise it is estimated using var().
return.chisq
If TRUE the vector of values to be thresholded is returned. These values are a quadratic form of each coefficient vector, and under normal assumptions the noise component will have a chi-squared distribution (see Downie and Silverman 1996).
bivariate
this line is in construction