smooth_wavelet | R Documentation |
The basic idea behind smooth_wavelet
is to denoise a vector
of data using wavelet methods that are available in 3 R
packages:
wmtsa, EbayesThresh
and wavethresh
. Do not mix parameters
related to different methods.
smooth_wavelet(x, thfun = wavShrink, wtfun = NULL, wtfunlist = list(), ...)
x |
A numeric vector. If the data is not of length
|
thfun |
A function to denoise |
wtfun |
A wavelet transform function: |
wtfunlist |
A named list of parameters to pass to functions |
... |
Additional arguments to pass to functions:
|
A numeric vector with the wavelet-based signal estimation.
wavShrink
,
ebayesthresh.wavelet
,
threshold
inf_head <- coreinf_br[["ipca"]]
# From package wmtsa (default):
smooth_wavelet(inf_head)
# From package EbayesThresh:
smooth_wavelet(inf_head, ebayesthresh.wavelet, modwt, list(wf = "haar"),
a = NA, vscale = "independent")
# From package wavethresh:
smooth_wavelet(inf_head, threshold, wd, list(filter.number = 8), policy = "cv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.