Guest User

Untitled

a guest
Dec 10th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. arr = [-0.1, 0.0, 0.5, 0.8, 1.2]
  2.  
  3. dist = [0.1, 0.5, 0.3, 0.4] # must be >0.25 for all elements
  4.  
  5. good_array = [-0.25, 0.0, 0.5, 0.8, 1.2] # all elements distance > threshold
  6.  
  7. [-0.2, 0.05, 0.5, 0.8, 1.2]
  8.  
  9. [-0.1, 0.15, 0.5, 0.8, 1.2]
  10.  
  11. [-0.3, 0.15, 0.2, 0.7] # modify arr[1] rather than arr[2]
Add Comment
Please, Sign In to add comment