For 2D : Manhattan Distance's formula is abs(x1-x2)+abs(y1-y2). Euclidean distance's formula is sqrt((x1-x2)^2+(y1-y2)^2). This is equivalent to the Pythagorean theorem.
 This chapter is an easy, short and fundamental chapter. (in fact the whole math chapter is easy, short and fundamental)
This chapter is an easy, short and fundamental chapter. (in fact the whole math chapter is easy, short and fundamental)In the picture, in red, blue and yellow, you have Manhattan distance. And in green is the Euclidean distance.
 
No comments:
Post a Comment