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.

Special methods

__call__(x: NDArray, rate: float) NDArray

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

Methods

reset(state: ArrayLike | None = None)

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

Properties

property taps : NDArray

The Farrow filter taps.

property order : int

The order of the filter.

property streaming : bool

Indicates whether the filter is in streaming mode.