Advertisement
lessientelrunya

distance

Jun 28th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. def dist(x, y):
  2.     return np.sqrt(np.sum((x - y)**2)) # np.sqrt and np.sum are numpy functions to work with numpy arrays
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement