de.lmu.ifi.dbs.elki.distance.similarityfunction
Class AbstractDBIDSimilarityFunction<D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractPrimitiveSimilarityFunction<DBID,D>
      extended by de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractDBIDSimilarityFunction<D>
Type Parameters:
D - distance type
All Implemented Interfaces:
DBIDSimilarityFunction<D>, PrimitiveSimilarityFunction<DBID,D>, SimilarityFunction<DBID,D>, InspectionUtilFrequentlyScanned, Parameterizable

public abstract class AbstractDBIDSimilarityFunction<D extends Distance<D>>
extends AbstractPrimitiveSimilarityFunction<DBID,D>
implements DBIDSimilarityFunction<D>

Abstract super class for distance functions needing a preprocessor.


Field Summary
protected  Relation<? extends DBID> database
          The database we work on
 
Constructor Summary
AbstractDBIDSimilarityFunction(Relation<? extends DBID> database)
          Constructor.
 
Method Summary
 boolean isSymmetric()
          Is this function symmetric?
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractPrimitiveSimilarityFunction
getInputTypeRestriction, instantiate, similarity
 
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.distance.similarityfunction.DBIDSimilarityFunction
similarity
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.similarityfunction.SimilarityFunction
getDistanceFactory, getInputTypeRestriction, instantiate
 

Field Detail

database

protected Relation<? extends DBID> database
The database we work on

Constructor Detail

AbstractDBIDSimilarityFunction

public AbstractDBIDSimilarityFunction(Relation<? extends DBID> database)
Constructor.

Parameters:
database - Database
Method Detail

isSymmetric

public boolean isSymmetric()
Description copied from interface: SimilarityFunction
Is this function symmetric?

Specified by:
isSymmetric in interface SimilarityFunction<DBID,D extends Distance<D>>
Overrides:
isSymmetric in class AbstractPrimitiveSimilarityFunction<DBID,D extends Distance<D>>
Returns:
true when symmetric

Release 0.4.0 (2011-09-20_1324)