Documentation of 'org.ddogleg.nn.alg.KdTreeSearch1' Java class
KdTreeSearch1
org.ddogleg.nn.alg

Interface KdTreeSearch1

    • Method Detail

      • setTree

        void setTree(KdTree tree)
        Specifies the tree which is to be searched
      • setMaxDistance

        void setMaxDistance(double maxDistance)
        Specifies the maximum distance a closest-point needs to be to be considered
        Parameters:
        maxDistance - maximum distance from target
      • findNeighbor

        KdTree.Node findNeighbor(double[] target)
        Searches for the nearest neighbor to the target. If no point is found that is less than maxDistance then return null.
        Parameters:
        target - Point whose nearest neighbor is being searched for
        Returns:
        The closest point or null if there is none.
      • getDistance

        double getDistance()
        Returns the distance of the closest node.
        Returns:
        distance to closest node.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.