10.5 Discrete wavelet transforms
Source: Ideas from Computational Physics (Landau, Páez, Bordeianu), §10.5. Rewritten in original wording — no textbook
dwt.pydump. Continues 10.4b. Next: 10.5b.
Only independent coeffs
With samples you can keep only independent transform numbers and still hit the sample grid. Stay consistent with while doing so. Pick the dyadic lattice, the orthonormal reconstruction, and the Daub4 taps among lookalikes.
Then . Orthonormality plus time localization ⇒ low correlation ⇒ good compression.
Low : few wide tiles (smooth outline). High : many narrow tiles (detail). Same area .
Filters instead of integrals
Industrial DWTs use multiresolution analysis (Mallat): pass the signal through digital lowpass and highpass filters (convolutions = discrete wavelet overlaps), then ↓2 decimate. Recurse on the lowpass branch.
Highpass outputs are details (store). Lowpass outputs are smooth (feed the next stage). Stop when two smooth and two detail numbers remain.
Synthesis reverses the arrows: upsample, apply transpose filters, merge until length returns.
Daub4 coefficients
Daubechies filters are defined by tap weights, not closed forms. Stack and (and shifted copies) into an orthogonal matrix — the you picked above. smooths (weighted average); differences (detail). Larger builds a banded filter matrix with wrap-around at the edges; pyramid reorders smooth/detail after each stage.
Inverse-transform a unit impulse in coefficient space to see the time-domain Daub4 shape at different scales.
Practice checklist
- Implement Daub4 forward/inverse on length (chirp is the book’s demo).
- Stop the pyramid at different
nendto watch ↓2 stages. - Invert (
signflip) and match . - Impulse → mother visualizations at growing widths.
# dwt_daub4_sketch.py — original structure (not a textbook dump)
c0, c1, c2, c3 = ... # Daub4 closed form
# forward: for each pair, s = L·y_local, d = H·y_local; ↓2; recurse on s
# inverse: upsample; apply transpose taps; merge
Discrete wavelets
1 / 4A dyadic DWT takes scales…
Pick an answer to see if you are right.
Next: 10.5b DWT labs.