wavMRDSum(x, wavelet="s8",
levels=1, xform="modwt", reflect=TRUE,
keep.smooth=TRUE, keep.details=TRUE)
TRUE
, the details
corresponding to the specified levels are included in the partial summation
over the MRD components. The user also has the choice to
exclude the smooth in the summation via the keep.smooth
opTRUE
, the smooth
at the last decomposition level is added to the partial summation
over specified details. The smooth typically contains low-frequency trends present in
a series, so removing the smooth (keep.smooth=F
flo
TRUE
, the
last $L_J = (2^{\mbox{n.level}} - 1)(L - 1) + 1$
coefficients of the series are reflected (reversed and appended to the end
of the series) in order to attenuate the adverse effect of circular
filter operations onwavDaubechies
for details. Default: "s8"
."dwt"
and "modwt"
for the discrete wavelet transform (DWT)
and maximal overlap DWT (MODWT), respectively. The DWT is a decimated transform
where (at each level) With the intent of removing unwanted noise events,
a summation over a subset of MRD components may be
calculated yielding a smooth approximation to the
original series. For example, summing all MRD components
beyond $D_1$ is tantamount to a low-pass filtering
of the original series (whether or not this is a relevant
and sufficient noise removal technique is left to the discretion
of the practitioner). This function allows the user to specify
the decomposition levels they wish to sum over in order to form
a multiresolution approximation. The inclusion of the last level's smooth
in the summation is controlled by the optional keep.smooth
argument.
The user may also select either a decimated wavelet transform (DWT) or an undecimated wavelet transform (MODWT). However, we recommend that the user stick with the MODWT for the following reasons: [object Object],[object Object],[object Object],[object Object]
T.W. Randolph and Y. Yasui, Multiscale Processing of Mass Spectrometry Data, Biometrics, 62:589--97, 2006.
wavDaubechies
, wavDWT
, wavMODWT
, wavMRD
.## create a MODWT-based MRD of the sunspots series
## and sum over decomposition levels 4 to 6
x <- as.vector(sunspots)
z1 <- wavMRDSum(x, levels=4:6)
stackPlot(x=as.vector(time(sunspots)),
y=list(sunspots=x, "D4+D5+D6"=z1),
ylim=range(x,z1))
Run the code above in your browser using DataLab