Learn R Programming

RSEIS (version 4.2-4)

genrick: Ricker Wavelet

Description

Generate a ricker wavelet of a specfied frequency and length

Usage

genrick(freq, dt, nw)

Value

ricker wavelet as a vector.

Arguments

freq

frequency of ricker wavelet

dt

Time sample rate (s)

nw

length of wavelet.

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

Run this code

dt <- 0.01
freq <- 16
nlen <- 35

G <- genrick(freq, dt, nlen)

tee <- seq(from=0, by=dt, length=length(G))

plot(tee, G, type='l')

Run the code above in your browser using DataLab