Difference between scipy.spatial.KDTree and scipy.spatial.cKDTree

前端 未结 3 1412
春和景丽
春和景丽 2021-02-02 07:22

What is the difference between these two algorithms?

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 07:54

    Currently, both have almost same APIs, and cKDTree is faster than KDTree. So, In the near future, SciPy developers are planning to remove KDTree, and cKDTree will be renamed to KDTree in a backwards-compatible way.

    Ref: Detailed SciPy Roadmap — SciPy v1.6.0.dev Reference Guide http://scipy.github.io/devdocs/roadmap-detailed.html#spatial

提交回复
热议问题