de.lmu.ifi.dbs.elki.distance.similarityfunction
Class AbstractIndexBasedSimilarityFunction.Instance<O,I extends Index,R,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.similarity.AbstractSimilarityQuery<O,D>
          extended by de.lmu.ifi.dbs.elki.database.query.similarity.AbstractDBIDSimilarityQuery<O,D>
              extended by de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractIndexBasedSimilarityFunction.Instance<O,I,R,D>
Type Parameters:
O - Object type
I - Index type
D - Distance result type
All Implemented Interfaces:
DatabaseQuery, SimilarityQuery<O,D>, IndexBasedSimilarityFunction.Instance<O,I,D>
Direct Known Subclasses:
FractionalSharedNearestNeighborSimilarityFunction.Instance, SharedNearestNeighborSimilarityFunction.Instance
Enclosing class:
AbstractIndexBasedSimilarityFunction<O,I extends Index,R,D extends Distance<D>>

public abstract static class AbstractIndexBasedSimilarityFunction.Instance<O,I extends Index,R,D extends Distance<D>>
extends AbstractDBIDSimilarityQuery<O,D>
implements IndexBasedSimilarityFunction.Instance<O,I,D>

The actual instance bound to a particular database.


Field Summary
protected  I index
          Parent index
 
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
AbstractIndexBasedSimilarityFunction.Instance(Relation<O> database, I index)
          Constructor.
 
Method Summary
 I getIndex()
          Get the index used.
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.similarity.AbstractDBIDSimilarityQuery
similarity, similarity, similarity
 
Methods inherited from class de.lmu.ifi.dbs.elki.database.query.similarity.AbstractSimilarityQuery
similarity
 
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.similarity.SimilarityQuery
getDistanceFactory, getRelation, similarity, similarity, similarity, similarity
 

Field Detail

index

protected final I extends Index index
Parent index

Constructor Detail

AbstractIndexBasedSimilarityFunction.Instance

public AbstractIndexBasedSimilarityFunction.Instance(Relation<O> database,
                                                     I index)
Constructor.

Parameters:
database - Database
index - Index to use
Method Detail

getIndex

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

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

Release 0.4.0 (2011-09-20_1324)