[SciPy-User] fast autocorrelation
Pierre Barbier de Reuille
Wed Feb 27 08:44:26 CST 2013
scipy.fftpack has two functions for that: rfft and irfft. They are both
faster than fft/ifft, so maybe you want to use that? Or is it still too
Dr. Barbier de Reuille, Pierre
Institute of Plant Sciences
Altenbergrain 21, CH-3013 Bern, Switzerland
On 27 February 2013 15:02, Neal Becker <firstname.lastname@example.org> wrote:
> I'm trying to use fft to do fast auto-correlation. (Actually, my real
> is slightly different, but I'll leave that detail out).
> The input sequence is complex, so a complex->complex FFT is used. A
> length 2N
> FFT is used with 0-padding to perform linear correlation.
> If now in FFT output we take magnitude-squared, we have a real sequence. A
> complex IFFT could be used to get the autocorrelation output, but that
> would be
> My question is, is there a trick to more efficiently compute IFFT where the
> input is real?
> A couple of thoughts:
> 1. there is a nice trick for real->complex fft (not ifft)
> 2. an fft can be used to compute ifft as ifft (x) = conj (fft (conj (x)))
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User