双kd树构建

发布于 2024-11-02 14:45:06 字数 135 浏览 6 评论 0原文

请有人告诉我如何构造双kd-tree以及如何遍历它?

至少告诉我在 java 中使用双树概念查找最近邻居的算法。这将有助于我的项目的完成。

谢谢。

Please anyone tell me how to construct dual kd-tree and how to traverse it?

And at least tell me the algorithm for finding nearest neighbor using this dual tree concept in java. This will help full for my project.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过度放纵 2024-11-09 14:45:06

如果您可以阅读 Python,请查看中描述的 query_ball_tree 的清晰源代码
scipy.spatial.KDTree ,
“找到距离最大为 r 的所有点对”。 (这是你想做的事吗?)

If you can read Python, look at the clear source for query_ball_tree described in
scipy.spatial.KDTree,
"Find all pairs of points whose distance is at most r". (Is that what you want to do ?)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文