1 Star 7 Fork 6

Linfu Wei/kd-tree

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

KD-Tree的C++实现

  • 构建KD-Tree
  • 最近邻搜索
  • 增量式构建KD-Tree: 再平衡
  • 半径搜索
  • 简化排序算法(1M数据构建耗时: 1.25s->0.95s)
  • K-近邻搜索

测试结果

1000000 points' building time is: 0.959315s
100000  points' insert time is  : 0.120473s
input         : 0.958026 0.134543 0.00170565
**********************************
********* nearest search *********
**********************************
----------- kdtree search -----------
The run time is: 4e-06 s
nearest: 0.954169 0.139261 0.00122561
----------- linear search -----------
The run time is: 0.003922 s
nearest: 0.954169 0.139261 0.00122561
*********************************
********* radius search *********
*********************************
----------- kdtree search -----------
The run time is: 0.001275 s
total num: 11463
----------- linear search -----------
The run time is: 0.0055 s
total num: 11463
*********************************
******** k-nearest search *******
*********************************
The run time is: 8e-06 s
nearest: 0.959102 0.127359 0.0064503
nearest: 0.960498 0.128208 0.00327801
nearest: 0.951494 0.13832 0.00077353
nearest: 0.954169 0.139261 0.00122561
nearest: 0.96175 0.128808 0.00288984

空文件

简介

可增量构建的kd-tree 展开 收起
README
BSD-3-Clause
取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ghowoght/kd-tree.git
git@gitee.com:ghowoght/kd-tree.git
ghowoght
kd-tree
kd-tree
v1.1

搜索帮助