FA-91557 / Digital signal filters / Member archive
Polyphase interpolator omits the L gain · case 02
The interpolated signal is L times too quiet because zero-stuffing removed energy.
Case contract
Input [h, L, samples] (integers). Zero-stuff by L and filter with h, scaled by gain L: y[mL + p] = L sum_j h[jL + p] x[m - j]; return len(samples) * L outputs in time order.
Why this case matters
Interpolators feed DACs and sample-rate converters; gain and phase-indexing slips cause level errors and imaging.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: random interpolator 0 | [-12, 4, 4, -20, -8, 4, -2, -14, -2] | [-36, 12, 12, -60, -24, 12, -6, -42, -6] | 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 ↗