band_stop_filter

typhoon.test.signals.filtering.band_stop_filter(input_signal, N, Wn, analog=False, fs=None)

Wrapper around ‘scipy.signal <https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.butter.html>’ function that represents Butterworth digital and analog filter design. It is used to design band-stop filter as Nth-order digital or analog Butterworth filter and return the filter coefficients.

Parameters:
  • signal (pandas.Series) – Input signal which should be filtered

  • N (int) – The order of the filter.

  • Wn (array-like) – The critical frequencies - length-2 sequence. The point at which the gain drops to 1/sqrt(2) that of passband(the “-3 dB point”).

  • analog (bool, optional) – When True, analog filter is used for filtering, otherwise it is digital

  • fs (float, optional) – The sampling frequency of the digital system.