Apex › Storage & databases

Multi-resolution & compression (Haar wavelet)

Where the FFT tells you what frequencies a signal contains but not where, the wavelet transform keeps both. The Haar step splits the signal into pairwise averages (trend) and differences (detail), recursing on the averages into a pyramid of scales. It’s orthonormal — the inverse rebuilds the signal exactly (verified to 1e-15, energy preserved) — and for smooth signals the details are near-zero, so keeping the few largest coefficients compresses and denoises. Verified: keep 25% of coeffs → 4.4% error vs 65% for raw samples. Slide the threshold and watch it compress.

More in Storage & databases