FA-91773 / Digital signal filters / Member archive
Impulse truncation counts quiet samples cumulatively · case 03
A response that dips below eps, rebounds and dips again is truncated while still ringing.
Case contract
Input [b, a, eps, maxlen, hold]; normalize by a0 ("bad-a0"), compute the impulse response exactly and stop after hold consecutive samples with |h| < eps, counted only once n >= len(b) - 1 (any non-quiet sample resets the count), or at maxlen. Return the kept samples as fraction strings.
Why this case matters
FIR approximations of IIR filters truncate the impulse response; wrong stop rules cut real energy or run forever.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: sparse echo hold 3 | ["1", "0", "0", "1/2", "0"] | ["1", "0", "0", "1/2", "0", "0", "1/4"] | 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 ↗