Class InMemoryLSHIndex.Instance.LSHKNNQuery

    • Constructor Detail

      • LSHKNNQuery

        public LSHKNNQuery​(DistanceQuery<V> distanceQuery)
        Constructor.
        Parameters:
        distanceQuery -
    • 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>
        Parameters:
        obj - query object
        k - Number of neighbors requested
        Returns:
        neighbors