PyWavelets / pywt

PyWavelets - Wavelet Transforms in Python
http://pywavelets.readthedocs.org
MIT License
1.97k stars 460 forks source link

Correct factors for complex Morlet wavelet #740

Open itamwa opened 1 month ago

itamwa commented 1 month ago

Hi there,

I'm using the continuous complex Morlet transform to compare a local energy spectrum and qualitatively I get what I expect (from Fourier transform, for example). Quantitatively, however, I'm pretty off.

I suspect two things:

  1. In the literature I see that for the wavelet I want to use should be in this form - psi1(x)= pi^(-0.25) e^(iwx) e^(-x^2/2), but the cwt function only allows me to use psi2(x)= (2pi)^(-0.5) e^(iwx) * e^(-x^2/2). Is there a way for me to conduct the transform with psi1(x) rather than psi2(x)
  2. In order to compare the amount of energy correctly, do I need to normalize my result by the scale? I believe in the literature it's refereed to as L1 normalization.

Thank you very much, Itamar