Skip to content

Python Polyphase API

Removed

doppler.polyphase has been removed. The DPMFS polynomial-fit resampler (ResamplerDpmfs) has also been removed.

Migration: use doppler.resample.Resampler for all rate conversion. Its built-in 4096-phase × 19-tap Kaiser bank covers all practical use cases with no coefficient design step required.

import numpy as np
from doppler.resample import Resampler

iq = (np.random.randn(4096) + 1j * np.random.randn(4096)).astype(
    np.complex64
)
r = Resampler(0.5)            # 2× decimation, 60 dB rejection
y = r.execute(iq)

The built-in bank is fixed (≈60 dB rejection, 0.4/0.6 pass/stop). For tighter rejection, design your own bank and pass it as bank=: a 2-D float32 array of shape (num_phases, num_taps), num_phases a power of two.