Class KNearestNeighborSearchOnIterableRealInterval<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      KNearestNeighborSearchOnIterableRealInterval<T> copy()
      Create a copy.
      double getDistance()
      Access the Euclidean distance between the reference location as used for the last search and the nearest neighbor, ordered by square Euclidean distance.
      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.
      int getK()
      Get the of k nearest neighbor points used in this search
      RealLocalizable getPosition()
      Access the position of the nearest neighbor, ordered by square Euclidean distance.
      RealLocalizable getPosition​(int i)
      Access the position of the ith nearest neighbor, ordered by square Euclidean distance.
      Sampler<T> getSampler()
      Access the data of the nearest neighbor.
      RealCursor<T> getSampler​(int i)
      Access the data of the ith nearest neighbor, ordered by square Euclidean distance.
      double getSquareDistance()
      Access the square Euclidean distance between the reference location as used for the last search and the nearest neighbor, ordered by square Euclidean distance.
      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.
      int numDimensions()
      Gets the space's number of dimensions.
      void search​(RealLocalizable reference)
      Perform k-nearest-neighbor search for a reference coordinate.
      protected double squareDistance​(RealLocalizable query)
      Calculate the square Euclidean distance of a query location to the location stored in referenceLocation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait