de.lmu.ifi.dbs.elki.distance.distancefunction
Class AbstractDatabaseDistanceFunction.Instance<O,D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery<O>
      extended by de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery<O,D>
          extended by de.lmu.ifi.dbs.elki.database.query.distance.AbstractDatabaseDistanceQuery<O,D>
              extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction.Instance<O,D>
All Implemented Interfaces:
DatabaseQuery, DistanceQuery<O,D>
Direct Known Subclasses:
AbstractSimilarityAdapter.Instance
Enclosing class:
AbstractDatabaseDistanceFunction<O,D extends Distance<D>>

public abstract static class AbstractDatabaseDistanceFunction.Instance<O,D extends Distance<D>>
extends AbstractDatabaseDistanceQuery<O,D>

The actual instance bound to a particular database.


Field Summary
(package private)  DistanceFunction<? super O,D> parent
          Parent distance
 
Fields inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery
relation
 
Fields inherited from interface de.lmu.ifi.dbs.elki.database.query.DatabaseQuery
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
 
Constructor Summary
AbstractDatabaseDistanceFunction.Instance(Relation<O> database, DistanceFunction<? super O,D> parent)
          Constructor.
 
Method Summary
 DistanceFunction<? super O,D> getDistanceFunction()
          Get the inner distance function.
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.distance.AbstractDatabaseDistanceQuery
distance, distance, distance
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.distance.AbstractDistanceQuery
distance, getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.AbstractDataBasedQuery
getRelation
 
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.database.query.distance.DistanceQuery
getRelation
 

Field Detail

parent

DistanceFunction<? super O,D extends Distance<D>> parent
Parent distance

Constructor Detail

AbstractDatabaseDistanceFunction.Instance

public AbstractDatabaseDistanceFunction.Instance(Relation<O> database,
                                                 DistanceFunction<? super O,D> parent)
Constructor.

Parameters:
database - Database
parent - Parent distance
Method Detail

getDistanceFunction

public DistanceFunction<? super O,D> getDistanceFunction()
Description copied from interface: DistanceQuery
Get the inner distance function.

Returns:
Distance function

Release 0.4.0 (2011-09-20_1324)