Class InMemoryIDistanceIndex.IDistanceKNNSearcher

    • Constructor Detail

      • IDistanceKNNSearcher

        public IDistanceKNNSearcher​(DistanceQuery<O> distanceQuery)
        Constructor.
        Parameters:
        distanceQuery - Distance query
    • Method Detail

      • getKNN

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