Skip to content

Commit 18e3a65

Browse files
committed
improve
1 parent 7ae6fcf commit 18e3a65

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

201810/20181011_01.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,29 @@ select *,
138138
from tt order by c1 <-> ?1 limit xx;
139139
```
140140

141+
## Euclidean distance , Taxicab distance , Chebyshev distance
142+
Euclidean distance
143+
![pic](20181011_01_pic_002.png)
144+
145+
Taxicab distance
146+
![pic](20181011_01_pic_003.png)
147+
148+
Chebyshev distance
149+
![pic](20181011_01_pic_004.png)
150+
141151
## 参考
142152
https://www.postgresql.org/docs/devel/static/cube.html
143153

144154
https://github.com/postgrespro/imgsmlr
145155

146156
https://github.com/eulerto/pg_similarity
147157

158+
https://en.wikipedia.org/wiki/Euclidean_distance
159+
160+
https://en.wikipedia.org/wiki/Chebyshev_distance
161+
162+
https://en.wikipedia.org/wiki/Taxicab_geometry
163+
148164
[《PostgreSQL 相似搜索插件介绍大汇总 (cube,rum,pg_trgm,smlar,imgsmlr,pg_similarity) (rum,gin,gist)》](../201809/20180904_01.md)
149165

150166
[《PostgreSQL 11 相似图像搜索插件 imgsmlr 性能测试与优化 3 - citus 8机128shard (4亿图像)》](../201809/20180904_04.md)

201810/20181011_01_pic_002.png

90.7 KB
Loading

201810/20181011_01_pic_003.png

7.33 KB
Loading

201810/20181011_01_pic_004.png

468 Bytes
Loading

0 commit comments

Comments
 (0)