BandPassFilter.discrete_bandpass#

static BandPassFilter.discrete_bandpass(shape, lowpass, highpass, sampling_rate, return_real_fourier=False, shape_is_real_fourier=False, **kwargs)[source]#

Generate a bandpass filter using discrete frequency cutoffs.

Parameters:
shapetuple of int

The shape of the bandpass filter.

lowpassfloat

The lowpass cutoff in units of sampling rate.

highpassfloat

The highpass cutoff in units of sampling rate.

return_real_fourierbool, optional

Whether to return only the real Fourier space, defaults to False.

sampling_ratefloat

The sampling rate in Fourier space.

shape_is_real_fourierbool, optional

Whether the shape represents the real Fourier space, defaults to False.

**kwargsdict

Additional keyword arguments.

Returns:
BackendArray

The bandpass filter in Fourier space.