class sdr.FarrowResampler

Implements a cubic Farrow arbitrary resampler.

References

Examples

See the Farrow arbitrary resampler example.

Constructors

FarrowResampler(streaming: bool = False)

Creates a new Farrow arbitrary resampler.

Methods

resample(x: ArrayLike, rate: float) ndarray

Resamples the input signal \(x[n]\) by the given arbitrary rate \(r\).

reset(state: ArrayLike | None = None)

Streaming-mode only: Resets the filter state and fractional sample index.

Properties

property order : int

The order of the filter.

property streaming : bool

Indicates whether the filter is in streaming mode.

property taps : ndarray

The Farrow filter taps.