当前位置:网站首页>曼哈顿距离简介
曼哈顿距离简介
2022-07-25 07:19:00 【荆楚闲人】
前言
维基百科上给的定义如下:
计程车几何(Taxicab geometry)或曼哈顿距离(Manhattan distance or Manhattan length)或方格线距离是由十九世纪的赫尔曼·闵可夫斯基所创辞汇,为欧几里得几何度量空间的几何学之用语,用以标明两个点上在标准坐标系上的绝对轴距之总和。
想象你在曼哈顿,要从一个十字路口开车到另外一个十字路口,实际驾驶距离就是这个“曼哈顿距离”。而这也是曼哈顿距离名称的来源,曼哈顿距离也称为城市街区距离。

在上图中,绿线是欧几里得距离,红线是曼哈顿距离,蓝线和黄线是等价的曼哈顿距离。
二维平面两点a(x1,y1)与b(x2,y2)间的曼哈顿距离为:
d = | x1 - x2 | + |y1 - y2|
两个n维向量a(x11,x12,…,x1k)与 b(x21,x22,…,x2k)间的曼哈顿距离为:

本文转自:曼哈顿距离简介_迷途小书童的Note的博客-CSDN博客
边栏推荐
- [notes for question brushing] search the insertion position (flexible use of dichotomy)
- 解密NumPy求解梯度的一个关键难点
- 论文阅读:UNET 3+: A FULL-SCALE CONNECTED UNET FOR MEDICAL IMAGE SEGMENTATION
- 各位老板 问一下 就是我们mysql cdc保存的是配置数据 然后kafka里面堆积的有历史
- js无法获取headers中Content-Disposition
- When providing digital talent services, Xi Zhi quickly opened its own digital school for each organization
- Enable the free pan domain SSL certificate for kubesphere cluster and realize the automatic update and distribution of certificates
- List derivation
- 北京内推 | 微软STCA招聘NLP/IR/DL方向研究型实习生(可远程)
- CTF Crypto---RSA KCS1_ Oaep mode
猜你喜欢

30 times performance improvement -- implementation of MyTT index library based on dolphin DB

RPC通信原理与项目技术选型

File operation-

分层强化学习综述:Hierarchical reinforcement learning: A comprehensive survey

Alibaba cloud image address & Netease cloud image

9大最佳工程施工项目管理系统

CTF Crypto---RSA KCS1_ Oaep mode

【电脑讲解】NVIDIA发布GeForce RTX SUPER系列显卡,游戏玩家福利来了!

Million level element optimization: real-time vector tile service based on PG and PostGIS

leetcode刷题:动态规划06(整数拆分)
随机推荐
Million level element optimization: real-time vector tile service based on PG and PostGIS
冰冰学习笔记:类与对象(上)
用VS Code搞Qt6:编译源代码与基本配置
When providing digital talent services, Xi Zhi quickly opened its own digital school for each organization
What are the types of financial products in 2022? Which is suitable for beginners?
Leave the factory and sell insurance
Hierarchical reinforcement learning: a comprehensive survey
Box horse "waist cut", blame Hou Yi for talking too much?
[daily question 1] 1184. Distance between bus stops
Mathematics Olympiad vs Informatics Olympiad (July 19, 2022)
First, how about qifujin
JS cannot get content disposition in headers
What are runtimecompiler and runtimeonly
Traffic is not the most important thing for the metauniverse. Whether it can really change the traditional way of life and production is the most important
[notes for question brushing] search the insertion position (flexible use of dichotomy)
【obs】视频包发送的dts_usec 计算
Scavenging vultures or woodpeckers? How to correctly understand short selling
Lpad() function and (row_number() over (order by) +...)
[notes] search rotation sort array
【每日一题】剑指 Offer II 115. 重建序列