scal2freqM function

Scale to frequency by Matlab

Scale to frequency by Matlab

scal2freqM(wf, scale, delta)

Arguments

  • wf: wavelet name
  • scale: a scale
  • delta: the sampling period.

Returns

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)) }