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

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDatabaseDistanceFunction<O,D>
Type Parameters:
O - the type of DatabaseObject to compute the distances in between
D - the type of Distance used
All Implemented Interfaces:
DistanceFunction<O,D>, InspectionUtilFrequentlyScanned, Parameterizable
Direct Known Subclasses:
AbstractIndexBasedDistanceFunction, AbstractSimilarityAdapter, MinKDistance

public abstract class AbstractDatabaseDistanceFunction<O,D extends Distance<D>>
extends Object
implements DistanceFunction<O,D>

Abstract super class for distance functions needing a database context.


Nested Class Summary
static class AbstractDatabaseDistanceFunction.Instance<O,D extends Distance<D>>
          The actual instance bound to a particular database.
 
Constructor Summary
AbstractDatabaseDistanceFunction()
          Constructor, supporting Parameterizable style classes.
 
Method Summary
abstract  D getDistanceFactory()
          Method to get the distance functions factory.
 boolean isMetric()
          Is this distance function metric (in particular, does it satisfy the triangle equation?)
 boolean isSymmetric()
          Is this function symmetric?
 
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.distancefunction.DistanceFunction
getInputTypeRestriction, instantiate
 

Constructor Detail

AbstractDatabaseDistanceFunction

public AbstractDatabaseDistanceFunction()
Constructor, supporting Parameterizable style classes.

Method Detail

getDistanceFactory

public abstract D getDistanceFactory()
Description copied from interface: DistanceFunction
Method to get the distance functions factory.

Specified by:
getDistanceFactory in interface DistanceFunction<O,D extends Distance<D>>
Returns:
Factory for distance objects

isMetric

public boolean isMetric()
Description copied from interface: DistanceFunction
Is this distance function metric (in particular, does it satisfy the triangle equation?)

Specified by:
isMetric in interface DistanceFunction<O,D extends Distance<D>>
Returns:
true when metric.

isSymmetric

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

Specified by:
isSymmetric in interface DistanceFunction<O,D extends Distance<D>>
Returns:
true when symmetric

Release 0.4.0 (2011-09-20_1324)