Class InMemoryInvertedIndex.CosineKNNQuery

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CosineKNNQuery()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      KNNList getKNN​(V obj, 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

      • CosineKNNQuery

        protected CosineKNNQuery()
    • Method Detail

      • getKNN

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