This distance that we've described is called the Manhattan distance, so-called because Manhattan is laid out in US-style city blocks.
我们上面讨论的这种距离被称为曼哈顿距离,这样叫是因为曼哈顿是以美国风格的城市街区布局的。
That concludes our first look at Manhattan distance, which will come in handy again in the future when we deal with grid-based scenarios.
以上结束了我们对曼哈顿距离的初次讨论,在今后我们处理基于网格的游戏剧本时迟早会用到它的。
Given the vectors, one can calculate the distance between two items using measures such as the Manhattan distance, Euclidean distance, or cosine similarity.
通过矢量,开发人员可以使用各种指标(比如说曼哈顿距离、欧氏距离或余弦相似性)来计算两个项目之间的距离。
应用推荐