Class example¶
There are two classes in this module for performing convolution in the frequency domain with a fixed filter.
|
Real FFT convolve. |
|
General FFT convolve. |
Both inherit from the base class pydevtips.fftconvolve.FFTConvolveBase,
overwriting the abstract methods: pydevtips.fftconvolve.FFTConvolveBase._compute_filter_frequency_response() and
pydevtips.fftconvolve.FFTConvolveBase.__call__().
RFFTConvolve¶
- class pydevtips.fftconvolve.RFFTConvolve(filt, length)¶
Bases:
FFTConvolveBaseReal FFT convolve.
- __init__(filt, length)¶
Create convolver that uses a real-valued filter.
FFTConvolve¶
- class pydevtips.fftconvolve.FFTConvolve(filter, length)¶
Bases:
FFTConvolveBaseGeneral FFT convolve.
- __init__(filter, length)¶
Create convolver that uses a fixed filter.
FFTConvolveBase¶
- class pydevtips.fftconvolve.FFTConvolveBase(filt, length)¶
Bases:
objectAbstract class for FFT convolve.
- __init__(filt, length)¶
Base class for creating a convolver that uses the same filter.
- abstract _compute_filter_frequency_response()¶
Compute the filter frequency response.
- abstract __call__(signal)¶
Apply the filter to the signal, in the frequency domain.