Class ProjectedIndex.ProjectedRKNNByObject

  • All Implemented Interfaces:
    RKNNSearcher<O>
    Enclosing class:
    ProjectedIndex<O,​I>

    class ProjectedIndex.ProjectedRKNNByObject
    extends java.lang.Object
    implements RKNNSearcher<O>
    Class to proxy RkNN queries.
    Author:
    Erich Schubert
    • Constructor Detail

      • ProjectedRKNNByObject

        public ProjectedRKNNByObject​(DistanceQuery<O> distanceQuery,
                                     RKNNSearcher<I> inner)
        Constructor.
        Parameters:
        inner - Inner RkNN query.
    • Method Detail

      • getRKNN

        public DoubleDBIDList getRKNN​(O obj,
                                      int k)
        Description copied from interface: RKNNSearcher
        Get the reverse k nearest neighbors for a particular object.
        Specified by:
        getRKNN in interface RKNNSearcher<O>
        Parameters:
        obj - query object
        k - number of neighbors requested
        Returns:
        reverse k nearest neighbors