O - the type of object to compute the distances in betweenF - the index factory typepublic abstract class AbstractIndexBasedDistanceFunction<O,F extends IndexFactory<O>> 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 F |
indexFactory
Parameter to specify the preprocessor to be used.
|
INDEX_ID| Constructor and Description |
|---|
AbstractIndexBasedDistanceFunction(F 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 (satisfy the triangle inequality)
|
boolean |
isSymmetric()
Is this function symmetric?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstantiate, isSquaredprotected F extends IndexFactory<O> indexFactory
public AbstractIndexBasedDistanceFunction(F indexFactory)
indexFactory - Index factorypublic boolean isMetric()
DistanceFunctionisMetric in interface DistanceFunction<O>isMetric in class AbstractDatabaseDistanceFunction<O>true when metric.public boolean isSymmetric()
DistanceFunctionisSymmetric in interface DistanceFunction<O>isSymmetric in class AbstractDatabaseDistanceFunction<O>true when symmetricpublic final TypeInformation getInputTypeRestriction()
DistanceFunctiongetInputTypeRestriction in interface DistanceFunction<O>Copyright © 2019 ELKI Development Team. License information.