aspcore.fouriertransform.correlate_euclidian_ff
- aspcore.fouriertransform.correlate_euclidian_ff(freq_filter, freq_signal)
Correlates every channel of input with every channel of the filter
- Parameters:
freq_filter (ndarray of shape (num_freq, f_1, f_2, ..., f_n)) – 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.
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)