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

Class KdTreeSearch1Bbf

    • Constructor Detail

      • KdTreeSearch1Bbf

        public KdTreeSearch1Bbf(int maxNodesSearched)
        Configures the search
        Parameters:
        maxNodesSearched - Maximum number of nodes it will search. Used to limit CPU time.
    • Method Detail

      • findNeighbor

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

        public double getDistance()
        Description copied from interface: KdTreeSearch1
        Returns the distance of the closest node.
        Specified by:
        getDistance in interface KdTreeSearch1
        Returns:
        distance to closest node.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.