[PYTHON MATRIX-SIG] autocorrelation functions?

Konrad Hinsen hinsen@ibs.ibs.fr
Mon, 14 Oct 96 11:55:28 +0100


> Isn't the O(n^2) operation of autocorrelation mathematically
> equivalent to the O(n ln n) auto-convolution operation?
> 
>     ac(x)=inverse_fft(fft(x)^2)

Almost. The difference between convolution and correlation is
a conjugation: 
  xfft = fft(x)
  inverse_fft(xfft*conjugate(xfft))
(untested, as always).

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                          | E-Mail: hinsen@ibs.ibs.fr
Laboratoire de Dynamique Moleculaire   | Tel.: +33-76.88.99.28
Institut de Biologie Structurale       | Fax:  +33-76.88.54.94
41, av. des Martyrs                    | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France         | Nederlands/Francais
-------------------------------------------------------------------------------

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================