10.4b Wavelet transform labs
Source: Lab ideas from Computational Physics (Landau, Páez, Bordeianu), §10.4. Original drills. Continues 10.4.
Explorer
Pure Python. No NumPy. No VPython.
Formula refresh
Warm up: pick the matching equation among lookalikes (same walk as the theory lesson).
Labs
Activity:
For , print with 10 decimals.
No input.
Write-ups
Using “scale”, “frequency”, and “detail”, explain:
Why do small-s wavelet coefficients carry the fine time detail of a signal?
Minimum 3 words. Your answer must include: “scale”, “frequency”, “detail”.
0 words
Meet the writing requirements, then you can open the model answer.
Sketch (structure only)
# cwt_sketch.py — original structure (not a textbook dump)
# Y[i_s, i_tau] ≈ sum_k psi_s_tau(t_k) * y[k] * dt
for s in scales:
for tau in taus:
acc = 0.0
for t, yt in zip(ts, y):
acc += daughter(t, s, tau) * yt * dt
Y[(s, tau)] = acc