FAILURE MAP
← Case archive

FA-91817 / Digital signal filters / Member archive

Notch design places the zeros at pi - w0 · case 02

The notch appears at fs/2 - f0.

Member previewVariant 2 · 3 implementations · 7 checks per implementation

Case contract

Input [f0, fs, r]: second-order notch with zeros on the unit circle at +-w0 (w0 = 2 pi f0 / fs) and poles at radius r: b = [1, -2 cos w0, 1], a = [1, -2 r cos w0, r^2]; b is scaled for unity DC gain (sum(a)/sum(b)). Coefficients rounded to 9 decimals; "bad-frequency" unless 0 < f0 < fs/2, "bad-radius" unless 0 <= r < 1.

Why this case matters

Notch filters remove mains hum and interference tones; angle or radius slips miss the tone or widen the notch.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: f0=50 fs=1000 r=99/100{"a": [1.0, -1.883091902, 0.9801], "b": [0.024860402, 0.047287294, 0.024860402]}{"a": [1.0, -1.883091902, 0.9801], "b": [0.991021586, -1.885035075, 0.991021586]}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗