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

Class KdTreeSearchNStandard

  • All Implemented Interfaces:
    KdTreeSearchN


    public class KdTreeSearchNStandard
    extends java.lang.Object
    implements KdTreeSearchN
    Standard algorithm for searching a KdTree for the nearest-neighbor of a search. This is an adaptation of KdTreeSearch1Standard for N-nearest-neighbors.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void findNeighbor(double[] target, int searchN, FastQueue<KdTreeResult> results)
      Finds the nodes which are closest to 'target' and within range of the maximum distance.
      void setMaxDistance(double maxDistance)
      Specifies the greatest distance it will search
      void setTree(KdTree tree)
      Specifies the tree which is to be searched
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KdTreeSearchNStandard

        public KdTreeSearchNStandard()
    • Method Detail

      • setMaxDistance

        public void setMaxDistance(double maxDistance)
        Specifies the greatest distance it will search
        Specified by:
        setMaxDistance in interface KdTreeSearchN
        Parameters:
        maxDistance - Maximum distance (Euclidean squared) a closest point can be
      • findNeighbor

        public void findNeighbor(double[] target,
                                 int searchN,
                                 FastQueue<KdTreeResult> results)
        Finds the nodes which are closest to 'target' and within range of the maximum distance.
        Specified by:
        findNeighbor in interface KdTreeSearchN
        Parameters:
        target - A point
        searchN - Number of nearest-neighbors it will search for
        results - Storage for the found neighbors

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.