双kd树构建
请有人告诉我如何构造双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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您可以阅读 Python,请查看中描述的
query_ball_tree
的清晰源代码scipy.spatial.KDTree ,
“找到距离最大为 r 的所有点对”。 (这是你想做的事吗?)
If you can read Python, look at the clear source for
query_ball_tree
described inscipy.spatial.KDTree,
"Find all pairs of points whose distance is at most r". (Is that what you want to do ?)