Learn R Programming

RSEIS (version 4.2-4)

scal2freqs: Wavelet Frequency Scale

Description

Get frequencies associated with the wavelet transform.

Usage

scal2freqs(octs, dt, plot = FALSE)

Value

frequency values

Arguments

octs

number of octaves

dt

sample rate, s

plot

logical, TRUE=plot

Author

Jonathan M. Lees<jonathan.lees.edu>

Details

Use morelet wavelet to estimate frequency from wavelet transform.

See Also

Mmorlet, fft

Examples

Run this code
noctave <- 6
nvoice <- 20
dt <- 0.004
i1 <- sort(rep(c(1:noctave), times=nvoice))
  jj <- rep(c(0:(nvoice-1)), times=noctave)

  sa <- 2^(i1+jj/nvoice)

  efs <- scal2freqs(sa, dt)




Run the code above in your browser using DataLab