Expand description
FFT-based cross-correlation, similar to scipy.signal.correlate(..., method="fft").
See the book entry Convolution and correlation.
Functionsยง
- fft_
autocorrelate - Autocorrelation of
xwith itself (full mode: lags-(n-1)..=n-1, peak at lag 0). - fft_
correlation_ peak - Finds the lag at which
in1best matchesin2(the peak of the magnitude of their full cross-correlation). A positive lag meansin1isin2delayed by that many samples. Returns(lag, correlation value at the peak). - fft_
cross_ correlate - Cross-correlation of
in1within2computed with FFTs:correlate(a, b) = convolve(a, reverse(conj(b))), soout[k]measures how wellin2delayed by the corresponding lag matchesin1(seecross_correlation_lagsfor the lag of each output).