ConvolveSamples¶
- class baseband_tasks.convolution.ConvolveSamples(ih, response, *, offset=0, samples_per_frame=None)[source] [edit on github]¶
Bases:
baseband_tasks.base.PaddedTaskBase
Convolve a time stream with a response, in the time domain.
- Parameters
- ihtask or
baseband
stream 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 convolved samples which should be produced in one go. The number of input samples used will be larger to avoid wrapping. If not given, as produced by the larger of the input samples per frame minus padding or the minimum power of 2 of input samples that yields at least 75% efficiency.
- ihtask or
See also
Convolve
convolution in the Fourier domain (usually faster)
Methods Summary
task
(data)Methods Documentation
- task(data)[source] [edit on github]¶