Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import numpy as np
  2.  
  3. array1 = np.random.rand(100)
  4. array2 = np.random.rand(100)
  5. conv = np.convolve(array1, array2, mode='same')
  6.  
  7. import numpy as np
  8.  
  9. array1 = np.random.rand(100)
  10. array2 = np.random.rand(100)
  11. conv = np.convolve(array1, array2, mode='full')[:100]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement