Class PrecomputedDistanceMatrix.PrecomputedKNNQuery

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) DBIDArrayIter it
      Iterator for mapping.
    • 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

      • PrecomputedKNNQuery

        public PrecomputedKNNQuery()
    • 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