O
- object typeM
- model typeN
- neighborhood typepublic abstract class AbstractRangeQueryNeighborPredicate<O,M,N> extends java.lang.Object implements NeighborPredicate<N>
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(java.lang.Class<? super M> modelcls,
Relation<O> relation,
RangeQuery<O> query)
Perform the preprocessing step.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOutputType, instantiate
protected double epsilon
protected DistanceFunction<? super O> distFunc
public AbstractRangeQueryNeighborPredicate(double epsilon, DistanceFunction<? super O> distFunc)
epsilon
- Epsilon valuedistFunc
- Distance function to usepublic TypeInformation getInputTypeRestriction()
NeighborPredicate
getInputTypeRestriction
in interface NeighborPredicate<N>
public DataStore<M> preprocess(java.lang.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 © 2019 ELKI Development Team. License information.