Class ProjectedIndex.ProjectedKNNByDBID

    • Constructor Detail

      • ProjectedKNNByDBID

        public ProjectedKNNByDBID​(DistanceQuery<O> distanceQuery,
                                  KNNSearcher<I> inner)
        Constructor.
        Parameters:
        inner - Inner kNN query.
    • 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