Filters

class Filters.BaseFilter[source]

Base class for filters. All filter classes should be derived from it.

filter(input)[source]

Filters a time domain signal.

Parameters:input (numpy.array(complex)) – Vector of time domain samples.
Returns:Vector of time domain samples that contains the filtered input.
Return type:numpy.array(complex)
class Filters.PassThrough[source]

Trivial filter, does not change the input signal.

filter(input)[source]

Filters a time domain signal.

Parameters:input (numpy.array(complex)) – Vector of time domain samples.
Returns:The input.
Return type:numpy.array(complex)
class Filters.FFTLowPass(cutoff_frequency_Hz, h_sec)[source]

Low-pass fiter implemented using the FFT.

__init__(cutoff_frequency_Hz, h_sec)[source]

Constructor.

Parameters:
  • cutoff_frequency_Hz (float) –
  • h_sec (float) –
filter(input)[source]

Removes high frequency components from a signal.

Parameters:input (numpy.array(complex)) – Vector of equi-distant time domain samples q[n]=q(t0+n*h_sec), n=0,1,2,…,N-1, where h_sec is the sampling interval that was provided to __init__(…).
Returns:Vector of the same properties as the input that represent a filtered version of the input signal in which frequency components outside the interval [-cutoff_frequency_Hz, cutoff_frequency_Hz], where cutoff_frequency_Hz is the value provided earlier to __init__(…), have been removed.
Return type:numpy.array(complex)