Skip to main content

10.4 Wavelet transforms

Source: Ideas from Computational Physics (Landau, Páez, Bordeianu), §10.4. Rewritten in original wording — no textbook cwt.py dump. Continues 10.3b. Next: 10.4b.

Definition​

Replace the STFT’s eternal complex exponential by a localized wavelet packet. Pick the CWT integral and the daughter formula among lookalikes.

Y(s,τ)Y(s,\tau) is the overlap of yy with a wavelet of scale ss centered at time τ\tau. Scale maps to frequency as ω=2π/s\omega=2\pi/s: small ss ⇔\Leftrightarrow high ω\omega ⇔\Leftrightarrow fine time detail.

Mothers and daughters​

Start from a mother, e.g. Ψ(t)=sin⁡(8t) e−t2/2\Psi(t)=\sin(8t)\,e^{-t^{2}/2}, and build the daughters you picked above. Explicitly,

ψs,τ(t)=1ssin⁡ ⁣[8(t−τ)s]exp⁡ ⁣[−(t−τ)22s2].\psi_{s,\tau}(t) =\frac{1}{\sqrt{s}}\sin\!\left[\frac{8(t-\tau)}{s}\right] \exp\!\left[-\frac{(t-\tau)^{2}}{2s^{2}}\right].

Figure 10.4 — scale and translate an oscillating Gaussian mother.

s<1 squeezes the packet (higher frequency); s>1 stretches it; τ\tau slides the center. The 1/s1/\sqrt{s} factor equalizes power across scales (other normalizations exist). An inverse integrates over τ\tau and s>0 with a mother-dependent constant CC (finite (s,τ)(s,\tau) grids reconstruct up to edge effects).

Figure 10.5 — slide \tau at fine s, then coarsen s and repeat.

Mother requirements​

  1. Real-valued Ψ\Psi.
  2. Zero mean: ∫Ψ=0\int\Psi=0 (must oscillate).
  3. Localized / square-integrable packet.
  4. Vanishing moments ∫tkΨ=0\int t^{k}\Psi=0 for k=0,…,p−1k=0,\ldots,p-1 — kills smooth polynomials so the transform highlights detail.

Self-similarity across scales is why fractal language shows up later (Chapter 14).

Continuous wavelet transform (CWT) practice​

Implement mothers (Morlet, Mexican hat, Haar), form daughters, and numerically integrate (10.14) on a (s,τ)(s,\tau) grid for:

  • pure / multi-tone sines,
  • the staged signal (10.1),
  • a half-wave.

Invert approximately and compare to yy (normalize). Expect near-overlap except near edges.

Figure 10.6 — input vs reconstructed overlap.

Figure 10.7 — scalogram idea for staged tones.

For the staged multi-tone, a Morlet CWT scalogram should show one dominant band early, then a second (smaller ss), then a third — time-resolved where a global DFT is not.

Discrete / dyadic choices of (s,τ)(s,\tau) come in §10.5. Prefer library CWTs for production after one slow reference integrator.

Quiz

Wavelet transforms

1 / 4

In ω = 2π/s, small scale s means…

Pick an answer to see if you are right.

Next: 10.4b Wavelet transform labs.