Fortune Telling Collection - Ziwei fortune-telling - Manhattan distance and Euclid distance
Manhattan distance and Euclid distance
In the figure, the red line represents Manhattan distance, the green line represents Euclidean distance, that is, straight line distance, and the blue and yellow line represents equivalent Manhattan distance. Manhattan distance-the distance between two points in the north-south direction plus the distance in the east-west direction, that is, d(i, j)=|xi-xj|+|yi-yj|. For a town street with regular layout, due south, due north, due east and due west, the distance from one point to another point is exactly the distance from north to south plus the distance from east to west, so the distance from Manhattan is also the distance from renting a car.
(2) In mathematics, Euclidean distance or Euclidean metric is the "ordinary" (straight line) distance between two points in Euclidean space. Using this distance, Euclidean space becomes a metric space. The relevant norm is called Euclidean norm. Early literature called it Pythagorean metric.
Calculation formula, as shown in the figure;
Figure 1
Figure ii
- Previous article:Funing weizi garden
- Next article:What is the rank of Sanqing in Taoism? Who are the Five Emperors of Sanqing?
- Related articles
- Ziweiyuan pancakes
- I dreamed that I fainted before sleeping with the emperor.
- How to explain this picture of Wei Zi in detail? Thank you. The time is Gregorian calendar1February 3, 958.
- What is Wei Zi's chart? What's the use?
- Lagerstroemia speciosa
- Sanqing, Four Emperors and Five Emperors in The Journey to the West ...
- Young crops and crape myrtle
- Who is Wei Zi in Princess Pearl?
- Ancient poetry, monsters
- Osmanthus purpurea plant card