Class InMemoryInvertedIndex.ArcCosineKNNQuery

  • All Implemented Interfaces:
    KNNSearcher<V>
    Enclosing class:
    InMemoryInvertedIndex<V extends NumberVector>

    protected class InMemoryInvertedIndex.ArcCosineKNNQuery
    extends java.lang.Object
    implements KNNSearcher<V>
    kNN query object, for arc cosine distance.
    Author:
    Erich Schubert
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ArcCosineKNNQuery()  
    • 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

      • ArcCosineKNNQuery

        protected ArcCosineKNNQuery()
    • 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