aspcore.fouriertransform.correlate_sum_ft

aspcore.fouriertransform.correlate_sum_ft(freq_filter, time_signal)

Computes linear correlation between a time-domain signal and a frequency-domain filter

Last dimension of the signal is summed over. Next to last dimension of the filter 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 before the impulse response.

  • time_signal (ndarray) – The signal. The last axis should correspond to time. Should be exactly twice as long as the filter.

Returns:

correlation – The linear correlation between the filter and the signal

Return type:

ndarray