prepareWavelets | R Documentation |
Prepare daughter wavelets for faster CWT
prepareWavelets(
mslength,
scales = c(1, seq(2, 30, 2), seq(32, 64, 4)),
wavelet = "mexh",
wavelet_xlimit = 8,
wavelet_length = 1024L,
extendLengthScales = TRUE
)
mslength |
Length of the signal to transform |
scales |
a vector represents the scales at which to perform CWT. See
the Details section. Additionally, a |
wavelet |
The wavelet base, Mexican Hat by default. User can provide
wavelet |
wavelet_xlimit |
The mother wavelet will be evaluated between these limits. Ignored if |
wavelet_length |
The number of points of the mother wavelet. Ignored if |
extendLengthScales |
A logical value. If the signal is too short, we may
need to pad it to convolve it with larger daughter wavelets. Set this to |
A prepared_wavelets
object.
cwt
x <- runif(2000)
scales <- c(1, 2, 4, 8)
prep_wavelets <- prepareWavelets(length(x), scales = scales)
wCoefs <- cwt(x, prep_wavelets)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.