de.lmu.ifi.dbs.elki.distance.distancefunction
Class AbstractIndexBasedDistanceFunction.Instance<O,I extends Index,D extends Distance<D>,F extends DistanceFunction<? super O,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.AbstractIndexBasedDistanceFunction.Instance<O,I,D,F>
Type Parameters:
O - Object type
I - Index type
D - Distance type
F - Distance function type
All Implemented Interfaces:
DatabaseQuery, DistanceQuery<O,D>, IndexBasedDistanceFunction.Instance<O,I,D>
Direct Known Subclasses:
AbstractPreferenceVectorBasedCorrelationDistanceFunction.Instance, ERiCDistanceFunction.Instance, LocallyWeightedDistanceFunction.Instance, PCABasedCorrelationDistanceFunction.Instance, SharedNearestNeighborJaccardDistanceFunction.Instance, SubspaceDistanceFunction.Instance
Enclosing class:
AbstractIndexBasedDistanceFunction<O,I extends Index,D extends Distance<D>>

public abstract static class AbstractIndexBasedDistanceFunction.Instance<O,I extends Index,D extends Distance<D>,F extends DistanceFunction<? super O,D>>
extends AbstractDatabaseDistanceQuery<O,D>
implements IndexBasedDistanceFunction.Instance<O,I,D>

The actual instance bound to a particular database.


Field Summary
protected  I index
          Index we use
protected  F parent
          Our parent distance function
 
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
AbstractIndexBasedDistanceFunction.Instance(Relation<O> database, I index, F parent)
          Constructor.
 
Method Summary
 F getDistanceFunction()
          Get the inner distance function.
 I getIndex()
          Get the index used.
 
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
distance, distance, distance, distance, getDistanceFactory, getRelation, infiniteDistance, nullDistance, undefinedDistance
 

Field Detail

index

protected final I extends Index index
Index we use


parent

protected F extends DistanceFunction<? super O,D> parent
Our parent distance function

Constructor Detail

AbstractIndexBasedDistanceFunction.Instance

public AbstractIndexBasedDistanceFunction.Instance(Relation<O> database,
                                                   I index,
                                                   F parent)
Constructor.

Parameters:
database - Database
index - Index to use
parent - Parent distance function
Method Detail

getIndex

public I getIndex()
Description copied from interface: IndexBasedDistanceFunction.Instance
Get the index used.

Specified by:
getIndex in interface IndexBasedDistanceFunction.Instance<O,I extends Index,D extends Distance<D>>
Returns:
the index used

getDistanceFunction

public F getDistanceFunction()
Description copied from interface: DistanceQuery
Get the inner distance function.

Specified by:
getDistanceFunction in interface DistanceQuery<O,D extends Distance<D>>
Returns:
Distance function

Release 0.4.0 (2011-09-20_1324)