Skip to content

DOC: clarify CWT normalization details around sampling_period (issue #801)#842

Open
magnaprog wants to merge 1 commit intoPyWavelets:mainfrom
magnaprog:fix-cwt-normalization-docs
Open

DOC: clarify CWT normalization details around sampling_period (issue #801)#842
magnaprog wants to merge 1 commit intoPyWavelets:mainfrom
magnaprog:fix-cwt-normalization-docs

Conversation

@magnaprog
Copy link

@magnaprog magnaprog commented Mar 4, 2026

Why this change

Issue #801 raised a good question: when comparing a hand-written CWT with pywt.cwt, why can an extra 1/sqrt(fs) factor seem necessary to match amplitudes?

This PR improves the docs to make that behavior easier to understand.

What changed

  • Updated the pywt.cwt docstring to explicitly state that sampling_period affects the reported frequencies, not coefficient scaling.
  • Added a short normalization section in the CWT reference docs with the continuous-time formula and a sampled (Riemann-sum) form.
  • Clarified how a dt factor can appear in manual continuous-time discretizations, and why that may show up as sqrt(dt) / 1/sqrt(fs) depending on parameterization.

Notes

This is a documentation-only change. No runtime behavior is changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant