WaveletCV
cross validation function.
A version implemented in C exists called Crsswav
.rsswav(noisy, value = 1, filter.number = 10, family = "DaubLeAsymm",
thresh.type = "hard", ll = 3)
thresh.type
argument that was specified.ll:(nlevelsWT(noisy)-1)
(i.e. the levels that were thresholded).Crsswav
is available.
It takes the same arguments and returns the same values.Two-fold cross validation can be computed for a wd object using the "cv" policy option in threshold.wd
.
As part of this procedure for each threshold value that the CV optimisation algorithm selects a RSS value must be computed (the CV optimisation algorithm seeks to minimize this RSS value).
The RSS value computed is this. First, the even and odd indexed values are separated. The even values are used to construct an estimate of the odd true values using wavelet shrinkage with the given threshold. The sum of squares between the estimate and the noisy odds is computed. An equivalent calculation is performed by swapping the odds and evens. The two RSS values are then averaged and the average returned. This algorithm is described more fully in Nason, (1996).
Crsswav
,threshold.wd
, WaveletCV