Class AbstractRangeQueryNeighborPredicate<O,​M,​N>

    • Field Detail

      • epsilon

        protected double epsilon
        Range to query with.
      • distance

        protected Distance<? super O> distance
        Distance function to use.
    • Constructor Detail

      • AbstractRangeQueryNeighborPredicate

        public AbstractRangeQueryNeighborPredicate​(double epsilon,
                                                   Distance<? super O> distance)
        Full constructor.
        Parameters:
        epsilon - Epsilon value
        distance - Distance function to use
    • Method Detail

      • preprocess

        public DataStore<M> preprocess​(java.lang.Class<? super M> modelcls,
                                       Relation<? extends O> relation,
                                       RangeSearcher<DBIDRef> query)
        Perform the preprocessing step.
        Parameters:
        modelcls - Class of models
        relation - Data relation
        query - Range query
        Returns:
        Precomputed models
      • computeLocalModel

        protected abstract M computeLocalModel​(DBIDRef id,
                                               DoubleDBIDList neighbors,
                                               Relation<? extends O> relation)
        Method to compute the actual data model.
        Parameters:
        id - Object ID
        neighbors - Neighbors
        relation - Data relation
        Returns:
        Model for this object.
      • getLogger

        abstract Logging getLogger()
        Get the class logger.
        Returns:
        Logger