Stefan van der Walt
stefan at sun.ac.za
Wed Sep 6 03:29:44 CDT 2006
On Tue, Sep 05, 2006 at 11:03:42PM -0400, PGM wrote:
> I'd need to compute the cross-correlation of two series.
> For the 1D case, I use numpy.correlate and select the last half of the result
> to get what I want.
> I need to work with 2Darrays, either by row, or by colum, or on the flattened
> array. I'm a bit at loss about what commands to use:
> scipy.signal.signaltools does not allow to work per axis.
You can try computing cross-correlation axis-wise using the FFT (by
reversing one of the input arguments). I attach an example of how to do
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 447 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20060906/10c674aa/attachment.py
More information about the SciPy-user