Class AbstractRangeQueryNeighborPredicate<O,M,N>
- java.lang.Object
-
- elki.clustering.dbscan.predicates.AbstractRangeQueryNeighborPredicate<O,M,N>
-
- Type Parameters:
O- object typeM- model typeN- neighborhood type
- All Implemented Interfaces:
NeighborPredicate<N>
- Direct Known Subclasses:
FourCNeighborPredicate,PreDeConNeighborPredicate
public abstract class AbstractRangeQueryNeighborPredicate<O,M,N> extends java.lang.Object implements NeighborPredicate<N>
Abstract local model neighborhood predicate.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractRangeQueryNeighborPredicate.Instance<N,M>Instance for a particular data set.
-
Constructor Summary
Constructors Constructor Description AbstractRangeQueryNeighborPredicate(double epsilon, Distance<? super O> distance)Full constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract McomputeLocalModel(DBIDRef id, DoubleDBIDList neighbors, Relation<? extends O> relation)Method to compute the actual data model.TypeInformationgetInputTypeRestriction()Input data type restriction.(package private) abstract LogginggetLogger()Get the class logger.DataStore<M>preprocess(java.lang.Class<? super M> modelcls, Relation<? extends O> relation, RangeSearcher<DBIDRef> query)Perform the preprocessing step.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.clustering.dbscan.predicates.NeighborPredicate
getOutputType, instantiate
-
-
-
-
Method Detail
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:NeighborPredicateInput data type restriction.- Specified by:
getInputTypeRestrictionin interfaceNeighborPredicate<O>- Returns:
- Type restriction
-
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 modelsrelation- Data relationquery- 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 IDneighbors- Neighborsrelation- Data relation- Returns:
- Model for this object.
-
getLogger
abstract Logging getLogger()
Get the class logger.- Returns:
- Logger
-
-