torchsig.utils.dsp.low_pass

torchsig.utils.dsp.low_pass(cutoff: float, transition_bandwidth: float, sample_rate: float, attenuation_db: float = 120) ndarray[source]

Low-pass filter design

Parameters:
  • cutoff (float) – The filter cutoff, 0 < cutoff < sample_rate/2. Must be in the same units as sample_rate.

  • transition_bandwidth (float) – The transition bandwidth of the filter, 0 < transition_bandwidth < sample_rate/2. Must be in the same units as sample_rate.

  • sample_rate (float) – The sampling rate associated with the filter design.

  • attenuation_db (float, optional) – Sidelobe attenuation level. Defaults to 120.

Returns:

Filter weights

Return type:

np.ndarray