
O - the type of object to compute the distances in betweenI - the type of Index usedD - the type of Distance usedpublic abstract class AbstractIndexBasedDistanceFunction<O,I extends Index,D extends Distance<D>> extends AbstractDatabaseDistanceFunction<O,D> implements IndexBasedDistanceFunction<O,D>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractIndexBasedDistanceFunction.Instance<O,I extends Index,D extends Distance<D>,F extends DistanceFunction<? super O,D>>
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?
|
getDistanceFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDistanceFactory, instantiateprotected IndexFactory<O,I extends Index> indexFactory
Key: -distancefunction.preprocessor
public AbstractIndexBasedDistanceFunction(IndexFactory<O,I> indexFactory)
indexFactory - Index factorypublic boolean isMetric()
DistanceFunctionpublic boolean isSymmetric()
DistanceFunctionisSymmetric in interface DistanceFunction<O,D extends Distance<D>>isSymmetric in class AbstractDatabaseDistanceFunction<O,D extends Distance<D>>true when symmetricpublic final TypeInformation getInputTypeRestriction()
DistanceFunctiongetInputTypeRestriction in interface DistanceFunction<O,D extends Distance<D>>