morlet function

Morlet Wavelet

Morlet Wavelet

Compute the Morlet wavelet on a regular grid.

morlet(lb = -4, ub = 4, n = 1000)

Arguments

  • lb, ub: Lower and upper bounds of the interval to evaluate the wavelet on. Default: -4 to 4.
  • n: Number of points on the grid between lb and ub (length of the wavelet). Default: 1000.

Returns

A list containing 2 variables; x, the grid on which the Morlet wavelet was evaluated, and psi (Ψ\Psi), the evaluated wavelet on the grid x.

Details

The code m <- morlet(lb, ub, n) returns values of the Morlet wavelet on an n-point regular grid in the interval c(lb, ub).

The Morlet waveform is defined as

ψ(x)=ex2/2cos(5x) \psi(x) = e^{-x^{2}/2} cos (5x)

Examples

m <- morlet(-4, 4, 1000) plot(m$x, m$psi, type="l", main = "Morlet Wavelet", xlab = "", ylab = "")

Author(s)

Sylvain Pelissier, sylvain.pelissier@gmail.com .

Conversion to R by Geert van Boxtel G.J.M.vanBoxtel@gmail.com .

  • Maintainer: Geert van Boxtel
  • License: GPL-3
  • Last published: 2024-09-11