scal2freqM {WASP} | R Documentation |
Scale to frequency by Matlab
Description
Scale to frequency by Matlab
Usage
scal2freqM(wf, scale, delta)
Arguments
wf |
wavelet name |
scale |
a scale |
delta |
the sampling period. |
Value
A vector of two numbers: frequency and period.
Examples
delta <- 1 / 12 # monthly data
scales <- 2^(1:7)
for (wf in c("haar", "d4", "d6", "d8", "d16")[1:5]) {
df1 <- scal2freqM(wf, scales, delta)
df2 <- scal2freqR(wf, scales, delta)
print(cbind(df1$frequency, df2$frequency))
}
[Package WASP version 1.4.4 Index]