程序包 com.jackmeng

类 KDTree

java.lang.Object
com.jackmeng.KDTree

public class KDTree extends Object
  • 字段详细资料

  • 构造器详细资料

    • KDTree

      public KDTree(List<double[]> points)
  • 方法详细资料

    • buildTree

      public KDTree.KDNode buildTree(List<double[]> points, int depth)
    • nearestNeighbor

      public KDTree.KDNode nearestNeighbor(double[] queryPoint)
    • nearestNeighbor

      public KDTree.KDNode nearestNeighbor(KDTree.KDNode currentNode, double[] queryPoint, KDTree.KDNode bestNode, int depth)
    • distance

      private double distance(double[] a, double[] b)