¡@

Home 

python Programming Glossary: xcorr

Cython and numpy speed

http://stackoverflow.com/questions/1199972/cython-and-numpy-speed

.5 sin 2 pi 1.1 times 1. ydata .5 sin 2 pi 1.1 times def xcorr x y return correlate x y mode 'same' def fftxcorr x y fx fy.. def xcorr x y return correlate x y mode 'same' def fftxcorr x y fx fy fft.fft x fft.fft y 1 fxfy fx fy xy fft.ifft fxfy.. fft.ifft fxfy return xy if __name__ __main__ N 10 t Timer xcorr xdata ydata from __main__ import xcorr xdata ydata print 'xcorr'..

Computing cross-correlation function?

http://stackoverflow.com/questions/6991471/computing-cross-correlation-function

it using the fft module Currently I am doing it as follows xcorr lambda x y irfft rfft x rfft y 1 x numpy.array 0 0 1 1 y numpy.array.. rfft y 1 x numpy.array 0 0 1 1 y numpy.array 1 1 0 0 print xcorr x y python r statistics numpy scipy share improve this question.. . There is also matplotlib.pyplot.xcorr which is based on numpy.correlate. See this post on the SciPy..