Interface KNearestNeighborSearch<T>

    • Method Detail

      • getK

        int getK()
        Get the of k nearest neighbor points used in this search
        Returns:
        the number of nearest neighbor points k used for this search
      • getSampler

        Sampler<T> getSampler​(int i)
        Access the data of the ith nearest neighbor, ordered by square Euclidean distance. Data is accessed through a Sampler that guarantees write access if the underlying data set is writable.
      • getPosition

        RealLocalizable getPosition​(int i)
        Access the position of the ith nearest neighbor, ordered by square Euclidean distance.
      • getSquareDistance

        double getSquareDistance​(int i)
        Access the square Euclidean distance between the reference location as used for the last search and the ith nearest neighbor, ordered by square Euclidean distance.
      • getDistance

        double getDistance​(int i)
        Access the Euclidean distance between the reference location as used for the last search and the ith nearest neighbor, ordered by square Euclidean distance.