comnum.resample_rational#
- comnum.resample_rational(x, fs_in, fs_out, cutoff_hz, *, n_taps=129)#
The samples
x(atfs_in) resampled tofs_outby the exact rational ratio of the two rates under the 80 dB Chebyshev-windowed low-pass filter of cut-offcutoff_hz(select_channel()without the removal of the mean and the shift).- Parameters:
- Returns:
ceil(len(x) fs_out / fs_in)samples (complex128).- Return type:
- Raises:
ValueError – for rates that are not whole numbers of hertz, a ratio that reduces to an interpolation by more than 1024, a cut-off out of range, or no tap.