[PYTHON MATRIX-SIG] autocorrelation functions?
Konrad Hinsen
hinsen@ibs.ibs.fr
Mon, 14 Oct 96 16:37:26 +0100
> 1) I can do 2d fft's and 2d inverse fft's -- what kind of
> autocorrelation metric would that use (meaning if autocorrelation is
> the function relating distance between elements and their
> correlation, what distance metric does it use)?
If you apply everything to 2d arrays, you end up with a 2d answer,
meaning a correlation function of two variables, i.e. a distance
*vector*. I suspect that you can get your total correlation by
averaging over all array elements corresponding to a fixed
"distance", whatever its definitions. For cartesian distance
that would mean averaging over "circles" (with the problem that
there will be very few points with exactly the same cartesian
distance), and for city-block distance averaging over pairs
of diagonal-parallels.
But I strongly recommend checking this before believing it!
I spent less than a minute thinking about it ;-)
> 2) I'd really appreciate a reference on these sorts of tidbits --
> computational algorithms which cross standard boundary distinctions.
> Can anyone recommend such a book?
Numerical Recipes did a good start, treating FFT together with
"ordinary" numerical algorithms (and it does say something about
convolutions and correlations). In general, the walls between
subfields seem to be too high to permit useful books like this.
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
=================