CWCV(ynoise, ll, x = 1:length(ynoise), filter.number = 10, family =
"DaubLeAsymm", thresh.type = "soft", tol = 0.01, verbose = 0,
plot.it = TRUE, interptype = "normal")
You must specify a primary resolution given by ll
. This must be specified individually on each data set and can itself be estimated using cross-validation (although I haven't written the code to do this).
Note. The two-fold cross-validation method performs very badly if the input data is correlated. In this case I would advise using the methods proposed in Donoho and Johnstone, 1995 or Johnstone and Silverman, 1997 which can be carried out in WaveThresh using the threshold
function using the policy="sure"
option.
threshold
. threshold.wd
.#
# This function is best used via the policy="cv" option in
# the threshold.wd function.
# See examples there.
#
Run the code above in your browser using DataLab