Skip to content

Improve low-order symlet coefficient precision - #901

Open
manav4u wants to merge 1 commit into
PyWavelets:mainfrom
manav4u:fix-low-order-symlet-precision-900
Open

manav4u wants to merge 1 commit into
PyWavelets:mainfrom
manav4u:fix-low-order-symlet-precision-900

Conversation

@manav4u

@manav4u manav4u commented Nov 24, 2026

Copy link
Copy Markdown

Summary

Improve the stored precision of sym2 and sym3 using the existing db2/db3 values. These low-order filters coincide mathematically, so this retains their length, phase and normalization while fixing avoidable reconstruction error.

This is only a narrow part of #900. Higher-order symlets and biorthogonal filters are unchanged and still need separate coefficient-generation work.

Validation

  • An independent 80-digit Decimal radical calculation rounds exactly to the existing db2/db3 values.
  • 74 new cases cover filter-bank identity and real/complex single/double reconstruction in all nine extension modes. Baseline has 38 failures; fixed has none.
  • A separate 216-case probe improves from 108/216 to 216/216 within eight machine epsilons. Worst tested error drops from about 234,299 epsilons to 2.26.
  • Full installed native suite: 1126 passed, 2 skipped on CPython 3.13.18 and 3.14.10, NumPy 2.5.5, Linux. Existing precomputed MATLAB-reference tests pass, but live MATLAB was not run.
  • All 106 discrete filter banks compared, only sym2 and sym3 differ. Configured Ruff and diff checks pass.

Prepared with AI assistance. No human review or maintainer acceptance is claimed.

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