Skip to content

DOC: explain DWT filter alignment in periodization mode - #909

Open
yqia03 wants to merge 1 commit into
PyWavelets:mainfrom
yqia03:docs/795-periodization-alignment
Open

yqia03 wants to merge 1 commit into
PyWavelets:mainfrom
yqia03:docs/795-periodization-alignment

Conversation

@yqia03

@yqia03 yqia03 commented Nov 29, 2026

Copy link
Copy Markdown

The single-level DWT reference explains the coefficient count in periodization mode, but not where the downsampling starts. For even-length inputs, this adds the sampling convention and a small db4 impulse example showing why the coefficient with greatest magnitude can occur at index 1.

This is documentation only. Related to #795; thanks to tycohen for the original example and investigation.

Validation: 7 reference-page doctest steps and 31 DWT/IDWT and extension-mode tests passed locally. A direct circular-convolution calculation also agreed with the library for 20 wavelet and signal-length combinations.

OpenAI Codex assisted with the documentation and verification.

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