aspcore.fouriertransform.convolve_sum
- aspcore.fouriertransform.convolve_sum(freq_filter, time_signal)
Performs linear convolution between a time-domain signal and a frequency-domain filter
The last dimension of the filter is summed over. The next to last dimension of the signal is summed over.
- Parameters:
freq_filter (ndarray) – The filter. The first axis should correspond to frequency. Before it was transformed, it should have been padded with zeros equal to the length of the impulse response after the impulse response.
time_signal (ndarray) – The signal. The last axis should correspond to time. Should be exactly twice as long as the impulse response of the filter.
- Returns:
filtered_signal – The signal filtered through the frequency domain filter
- Return type:
ndarray