aspcore.fouriertransform.correlate_euclidian_tf

aspcore.fouriertransform.correlate_euclidian_tf(time_filter, freq_signal)

Correlates every channel of input with every channel of the filter

Parameters:
  • time_filter (ndarray of shape (f_1, f_2, ..., ir_len)) – The filter. The last axis should correspond to time.

  • freq_signal (ndarray of shape (num_freq, s_1, s_2, ..., s_n)) – The signal. The first axis should correspond to frequency. Before being transformed into the frequency domain, it should have been twice as long as the impulse response of the filter.

Returns:

filtered_signal – The linear correlation between the filter and the signal

Return type:

ndarray of shape (filter.shape[:-1], signal.shape[:-1], num_samples)