torchsig.utils.dsp.multistage_polyphase_resampler

torchsig.utils.dsp.multistage_polyphase_resampler(input_signal: ndarray, resample_rate: float) ndarray[source]

Multi-stage polyphase filterbank-based resampling.

If the resampling rate is 1.0, then nothing is done and then same input signal is returned. If the resampling rate is greater than 1, then it performs interpolation using multistage_polyphase_interpolator. If the resampling rate is less than 1, then it performs interpolation using multistage_polyphase_decimator.

Parameters:
  • input_signal (np.ndarray) – The input signal to be resampled

  • resample_rate (float) – The resampling rate. Must be greater than 0.

Returns:

The resampled signal

Return type:

np.ndarray