BGlib.gmode.proc.fft.LowPassFilter

class BGlib.gmode.proc.fft.LowPassFilter(signal_length, samp_rate, f_cutoff, roll_off=0.05)[source]

Bases: FrequencyFilter

Builds a low pass filter

Parameters:
  • signal_length (unsigned int) – Points in the FFT. Assuming Signal in frequency space (ie - after FFT shifting)

  • samp_rate (unsigned integer) – Sampling rate

  • f_cutoff (unsigned integer) – Cutoff frequency for filter

  • roll_off (0 < float < 1) – Frequency band over which the filter rolls off. rol off = 0.05 on a 100 kHz low pass filter -> roll off from 95 kHz (1) to 100 kHz (0)

Returns:

LPF

Return type:

1D numpy array describing the low pass filter

Methods

get_parms

is_compatible