Convolve¶
- class baseband_tasks.convolution.Convolve(ih, response, *, offset=0, samples_per_frame=None)[source] [edit on github]¶
Bases:
PaddedTaskBaseConvolve a time stream with a response, in the Fourier domain.
The convolution is done via multiplication in the Fourier domain, which is faster than direct convolution for all but very simple responses.
- Parameters:
- ihtask or
basebandstream reader Input data stream, with time as the first axis.
- response
ndarray Response to convolce the time stream with. If one-dimensional, assumed to apply to the sample axis of
ih.- offsetint, optional
Where samples should be considered to be taken from. For the default of 0, a given sample has the same time as the convolution of the filter with all preceding samples.
- samples_per_frameint, optional
Number of output samples which should be produced in each frame. The number of input samples will be larger by the padding. If not given, the minimum length that gives at least 75% efficiency and ensures efficient fast fourier transforms.
- ihtask or
See also
ConvolveSamplesconvolution in the time domain (for simple responses)
baseband_tasks.fourier.fft_makerto select the FFT package used.
Methods Summary
close()Close task.
task(data)Methods Documentation
- close()[source] [edit on github]¶
Close task.
Note that this does not explicitly close the underlying source; instead, it just deletes the reference to it.
- task(data)[source] [edit on github]¶