- data
A vector of length a power of two, containing noisy data to be thresholded.
- alpha, beta
Hyperparameters which determine the priors placed on the wavelet coefficients. Both alpha and beta take positive values; see Abramovich, Sapatinas, & Silverman (1998) or Chipman & Wolfson (1999) for more details on selecting alpha
and beta
.
- filter.number
This selects the smoothness of wavelet that you want to use in the decomposition. By default this is 10, the Daubechies least-asymmetric orthonormal compactly supported wavelet with 10 vanishing moments.
For the ``wavelets on the interval'' (bc="interval"
) transform the filter number ranges from 1 to 8. See the table of filter coefficients indexed after the reference to Cohen, Daubechies and Vial, (1993).
- family
Specifies the family of wavelets that you want to use. Two popular options are "DaubExPhase" and "DaubLeAsymm" but see the help for filter.select for more possibilities.
This argument is ignored for the ``wavelets on the interval'' transform (bc="interval"
).
- bc
Specifies the boundary handling. If bc="periodic"
the default, then the function you decompose is assumed to be periodic on it's interval of definition, if bc="symmetric"
then the function beyond its boundaries is assumed to be a symmetric reflection of the function in the boundary. The symmetric option was the implicit default in releases prior to 2.2. Ifbc=="interval"
then the ``wavelets on the interval algorithm'' due to Cohen, Daubechies and Vial is used. (The WaveThresh
implementation of the ``wavelets on the interval transform'' was coded by Piotr Fryzlewicz, Department of Mathematics, Wroclaw University of Technology, Poland; this code was largely based on code written by Markus Monnerjahn, RHRK, Universitat Kaiserslautern; integration into WaveThresh
by GPN
).
- dev
This argument supplies the function to be used to compute the spread of the absolute values coefficients. The function supplied must return a value of spread on the variance scale (i.e. not standard deviation) such as the var()
function. A popular, useful and robust alternative is the madmad
function.
- j0
The primary resolution level. While BayesThresh thresholds at all resolution levels, j0 is used in assessing the universal threshold which is used in the empirical Bayes estimation of hyperparameters.
- plotfn
If TRUE, BAYES.THR draws the noisy data and the thresholded function estimate.