Skip to content

Fix windowed FIR to use numtaps#274

Open
togrue wants to merge 3 commits intochipmuenk:developfrom
togrue:develop
Open

Fix windowed FIR to use numtaps#274
togrue wants to merge 3 commits intochipmuenk:developfrom
togrue:develop

Conversation

@togrue
Copy link
Copy Markdown

@togrue togrue commented Mar 1, 2026

When the windowed FIR filter order was selected manually, it decremented each design run.

togrue added 3 commits March 1, 2026 15:30
When the windowed FIR filter order was selected manually, it decremented each
design run.
Refactor the FIR filter calculations to use numtaps (N + 1) instead of N.
This change ensures that the filter order is correctly applied across all relevant methods.
The current implementation lead to exceptions and error prints
when a high pass or band stop filter was designed.
I'd say the order must be even for a filter to pass through the nyquist frequency.
Example: A moving average filter with a tap length of 2 (order == 1) will
block the nyquist frequency;
A moving average filter with a tap length of 3 (order == 2) will pass the
nyquist frequency.
I'd assume that's also true for for windowed fir filters.
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