O
- the type of object to compute the distances in betweenI
- the type of Index usedpublic abstract class AbstractIndexBasedDistanceFunction<O,I extends Index> extends AbstractDatabaseDistanceFunction<O> implements IndexBasedDistanceFunction<O>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractIndexBasedDistanceFunction.Instance<O,I extends Index,F extends DistanceFunction<? super O>>
The actual instance bound to a particular database.
|
static class |
AbstractIndexBasedDistanceFunction.Parameterizer<F extends IndexFactory<?,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
protected IndexFactory<O,I> |
indexFactory
Parameter to specify the preprocessor to be used.
|
INDEX_ID
Constructor and Description |
---|
AbstractIndexBasedDistanceFunction(IndexFactory<O,I> indexFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputTypeRestriction()
Get the input data type of the function.
|
boolean |
isMetric()
Is this distance function metric (in particular, does it satisfy the
triangle equation?)
|
boolean |
isSymmetric()
Is this function symmetric?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate
protected IndexFactory<O,I extends Index> indexFactory
Key: -distancefunction.preprocessor
public AbstractIndexBasedDistanceFunction(IndexFactory<O,I> indexFactory)
indexFactory
- Index factorypublic boolean isMetric()
DistanceFunction
isMetric
in interface DistanceFunction<O>
isMetric
in class AbstractDatabaseDistanceFunction<O>
true
when metric.public boolean isSymmetric()
DistanceFunction
isSymmetric
in interface DistanceFunction<O>
isSymmetric
in class AbstractDatabaseDistanceFunction<O>
true
when symmetricpublic final TypeInformation getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<O>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.