Advertisement
Guest User

Euclidean distance Lauri K. Friberg 2020

a guest
Apr 6th, 2020
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.61 KB | None | 0 0
  1. Lauri K. Friberg 2020, math, Euclidean distance:
  2.  
  3. An example of the Euclidean distance d = sqrt( (x2-x1)² + (y2-y1)² ).
  4.  
  5. I can create an example of a Euclidean distance "d" like thus:
  6. 4² = 16, 3² = 9. d = sqrt( 16 + 9 ) = sqrt( 25 ) = 5.
  7.  
  8. Now I can create examples:
  9. d = sqrt( (14-10)² + (9-6)² ) =
  10. sqrt( 4² + 3² ) = sqrt( 16 + 9 ) = sqrt( 25 ) = 5.
  11.  
  12. When x2 = 14, x1 = 10, y2 = 9, y1 =6, then
  13. {x1 = 10, y1 = 6} = [x1, y1] = [10, 6] and
  14. {x2 = 14, y2 = 9} = [x2, y2] = [14, 9] then
  15. Euclidean distance d = sqrt(14-10)²+(9-6)²
  16. d = sqrt(4²+3²) = sqrt(16+9) = sqrt(25) = 5.
  17.  
  18. So Euclidean distance d = 5.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement