[Numpy-discussion] Problem with correlate?

Stéfan van der Walt stefan@sun.ac...
Wed Aug 20 16:49:14 CDT 2008


2008/8/20 Hanno Klemm <klemm@phys.ethz.ch>:
> In [29]: x = array([0.,0.,1, 0, 0])
> In [35]: y1 = array([1,0,0,0,0])
>
> In [36]: correlate(x,y1,mode='full')
> Out[36]: array([ 0.,  0.,  0.,  0.,  0.,  0.,  1.,  0.,  0.])

That doesn't look right.  Under r5661:

In [60]: np.convolve([0, 0, 1, 0, 0], [1, 0, 0, 0, 0], mode='f')
Out[60]: array([0, 0, 1, 0, 0, 0, 0, 0, 0])

Regards
Stéfan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080820/e943e00c/attachment.html 


More information about the Numpy-discussion mailing list