Package elki.distance
Class AbstractIndexBasedDistance.Instance<O,I extends Index,F extends Distance<? super O>>
- java.lang.Object
-
- elki.distance.AbstractIndexBasedDistance.Instance<O,I,F>
-
- Type Parameters:
O
- Object typeI
- Index typeF
- Distance function type
- All Implemented Interfaces:
DatabaseDistanceQuery<O>
,DistanceQuery<O>
,IndexBasedDistance.Instance<O,I>
- Direct Known Subclasses:
SharedNearestNeighborJaccardDistance.Instance
- Enclosing class:
- AbstractIndexBasedDistance<O,F extends IndexFactory<O>>
public abstract static class AbstractIndexBasedDistance.Instance<O,I extends Index,F extends Distance<? super O>> extends java.lang.Object implements IndexBasedDistance.Instance<O,I>
The actual instance bound to a particular database.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description F
getDistance()
Get the inner distance function.I
getIndex()
Get the index used.Relation<? extends O>
getRelation()
Access the underlying data query.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface elki.database.query.distance.DatabaseDistanceQuery
distance, distance, distance
-
Methods inherited from interface elki.database.query.distance.DistanceQuery
distance
-
-
-
-
Method Detail
-
getRelation
public Relation<? extends O> getRelation()
Description copied from interface:DistanceQuery
Access the underlying data query.- Specified by:
getRelation
in interfaceDistanceQuery<O>
- Returns:
- data query in use
-
getIndex
public I getIndex()
Description copied from interface:IndexBasedDistance.Instance
Get the index used.- Specified by:
getIndex
in interfaceIndexBasedDistance.Instance<O,I extends Index>
- Returns:
- the index used
-
getDistance
public F getDistance()
Description copied from interface:DistanceQuery
Get the inner distance function.- Specified by:
getDistance
in interfaceDistanceQuery<O>
- Returns:
- Distance function
-
-