
O - object typeM - model typepublic abstract class AbstractRangeQueryNeighborPredicate<O,M> extends Object implements NeighborPredicate
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractRangeQueryNeighborPredicate.Instance<N,M>
Instance for a particular data set.
|
static class |
AbstractRangeQueryNeighborPredicate.Parameterizer<O>
Parameterization class
|
| Modifier and Type | Field and Description |
|---|---|
protected DistanceFunction<? super O> |
distFunc
Distance function to use.
|
protected double |
epsilon
Range to query with.
|
| Constructor and Description |
|---|
AbstractRangeQueryNeighborPredicate(double epsilon,
DistanceFunction<? super O> distFunc)
Full constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract M |
computeLocalModel(DBIDRef id,
DoubleDBIDList neighbors,
Relation<O> relation)
Method to compute the actual data model.
|
TypeInformation |
getInputTypeRestriction()
Input data type restriction.
|
(package private) abstract Logging |
getLogger()
Get the class logger.
|
DataStore<M> |
preprocess(Class<? super M> modelcls,
Relation<O> relation,
RangeQuery<O> query)
Perform the preprocessing step.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputType, instantiateprotected double epsilon
protected DistanceFunction<? super O> distFunc
public AbstractRangeQueryNeighborPredicate(double epsilon,
DistanceFunction<? super O> distFunc)
epsilon - Epsilon valuedistFunc - Distance function to usepublic TypeInformation getInputTypeRestriction()
NeighborPredicategetInputTypeRestriction in interface NeighborPredicatepublic DataStore<M> preprocess(Class<? super M> modelcls, Relation<O> relation, RangeQuery<O> query)
modelcls - Class of modelsrelation - Data relationquery - Range queryprotected abstract M computeLocalModel(DBIDRef id, DoubleDBIDList neighbors, Relation<O> relation)
id - Object IDneighbors - Neighborsrelation - Data relationabstract Logging getLogger()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.