-
sdr.multirate_taps(up: int, down: int =
1
, half_length: int =12
, A_stop: float =80
) NDArray[float_] Computes the multirate FIR filter that achieves rational resampling by \(P/Q\).
Note
This filter can be used with
sdr.Interpolator
,sdr.Decimator
, orsdr.Resampler
.References¶
fred harris, Multirate Signal Processing for Communication Systems, Chapter 7: Resampling Filters
https://www.mathworks.com/help/dsp/ref/designmultiratefir.html
Examples¶
Design a multirate FIR filter for rational resampling by 11/3.
In [1]: h = sdr.multirate_taps(11, 3) In [2]: plt.figure(figsize=(8, 4)); \ ...: sdr.plot.impulse_response(h); ...: In [3]: plt.figure(figsize=(8, 4)); \ ...: sdr.plot.magnitude_response(h); ...: