Class SpacefillingKNNPreprocessor.SpaceFillingKNNQuery

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) DistanceQuery<O> distq
      Distance query to use for refinement
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      KNNList getKNN​(DBIDRef id, int k)
      Get the k nearest neighbors for a particular object.
      • Methods inherited from class java.lang.Object

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

      • SpaceFillingKNNQuery

        public SpaceFillingKNNQuery​(DistanceQuery<O> distanceQuery)
        Constructor.
        Parameters:
        distanceQuery - Distance query to use for refinement
    • Method Detail

      • getKNN

        public KNNList getKNN​(DBIDRef id,
                              int k)
        Description copied from interface: KNNSearcher
        Get the k nearest neighbors for a particular object.
        Specified by:
        getKNN in interface KNNSearcher<DBIDRef>
        Parameters:
        id - query object
        k - Number of neighbors requested
        Returns:
        neighbors