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 FgetDistance()Get the inner distance function.IgetIndex()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:DistanceQueryAccess the underlying data query.- Specified by:
getRelationin interfaceDistanceQuery<O>- Returns:
- data query in use
-
getIndex
public I getIndex()
Description copied from interface:IndexBasedDistance.InstanceGet the index used.- Specified by:
getIndexin interfaceIndexBasedDistance.Instance<O,I extends Index>- Returns:
- the index used
-
getDistance
public F getDistance()
Description copied from interface:DistanceQueryGet the inner distance function.- Specified by:
getDistancein interfaceDistanceQuery<O>- Returns:
- Distance function
-
-