|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction<O,D> de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractIndexBasedDistanceFunction<O,I,D>
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>>
Abstract super class for distance functions needing a database index.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
protected IndexFactory<O,I> |
indexFactory
Parameter to specify the preprocessor to be used. |
Fields inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.IndexBasedDistanceFunction |
---|
INDEX_ID |
Constructor Summary | |
---|---|
AbstractIndexBasedDistanceFunction(IndexFactory<O,I> indexFactory)
Constructor. |
Method Summary | |
---|---|
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? |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction |
---|
getDistanceFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.DistanceFunction |
---|
getDistanceFactory, instantiate |
Field Detail |
---|
protected IndexFactory<O,I extends Index> indexFactory
Key: -distancefunction.preprocessor
Constructor Detail |
---|
public AbstractIndexBasedDistanceFunction(IndexFactory<O,I> indexFactory)
indexFactory
- Index factoryMethod Detail |
---|
public boolean isMetric()
DistanceFunction
isMetric
in interface DistanceFunction<O,D extends Distance<D>>
isMetric
in class AbstractDatabaseDistanceFunction<O,D extends Distance<D>>
true
when metric.public boolean isSymmetric()
DistanceFunction
isSymmetric
in interface DistanceFunction<O,D extends Distance<D>>
isSymmetric
in class AbstractDatabaseDistanceFunction<O,D extends Distance<D>>
true
when symmetricpublic final TypeInformation getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<O,D extends Distance<D>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |