de.lmu.ifi.dbs.elki.algorithm
Class AbstractDistanceBasedAlgorithm<O,D extends Distance<D>,R extends Result>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<R>
      extended by de.lmu.ifi.dbs.elki.algorithm.AbstractDistanceBasedAlgorithm<O,D,R>
Type Parameters:
O - the type of objects handled by this Algorithm
D - the type of Distance used by this Algorithm
R - the type of result to retrieve from this Algorithm
All Implemented Interfaces:
Algorithm, InspectionUtilFrequentlyScanned, Parameterizable
Direct Known Subclasses:
ABOD, AbstractDBOutlier, CTLuGLSBackwardSearchAlgorithm, CTLuRandomWalkEC, DBSCAN, DeLiClu, DistanceStatisticsWithClasses, EvaluateRankingQuality, INFLO, KNNDistanceOrder, KNNJoin, KNNOutlier, KNNWeightOutlier, LDOF, LOCI, MaterializeDistances, OPTICS, OPTICSOF, RankingQualityHistogram, SLINK

public abstract class AbstractDistanceBasedAlgorithm<O,D extends Distance<D>,R extends Result>
extends AbstractAlgorithm<R>

Provides an abstract algorithm already setting the distance function.


Nested Class Summary
static class AbstractDistanceBasedAlgorithm.Parameterizer<O,D extends Distance<D>>
          Parameterization helper class.
 
Field Summary
static OptionID DISTANCE_FUNCTION_ID
          OptionID for DISTANCE_FUNCTION_ID
private  DistanceFunction<? super O,D> distanceFunction
          Holds the instance of the distance function specified by DISTANCE_FUNCTION_ID.
 
Constructor Summary
protected AbstractDistanceBasedAlgorithm(DistanceFunction<? super O,D> distanceFunction)
          Constructor.
 
Method Summary
 DistanceFunction<? super O,D> getDistanceFunction()
          Returns the distanceFunction.
 
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm
getInputTypeRestriction, getLogger, makeParameterDistanceFunction, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISTANCE_FUNCTION_ID

public static final OptionID DISTANCE_FUNCTION_ID
OptionID for DISTANCE_FUNCTION_ID


distanceFunction

private DistanceFunction<? super O,D extends Distance<D>> distanceFunction
Holds the instance of the distance function specified by DISTANCE_FUNCTION_ID.

Constructor Detail

AbstractDistanceBasedAlgorithm

protected AbstractDistanceBasedAlgorithm(DistanceFunction<? super O,D> distanceFunction)
Constructor.

Parameters:
distanceFunction - Distance function
Method Detail

getDistanceFunction

public DistanceFunction<? super O,D> getDistanceFunction()
Returns the distanceFunction.

Returns:
the distanceFunction

Release 0.4.0 (2011-09-20_1324)