Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.distance.distancefunction
Class AbstractPreprocessorBasedDistanceFunction<O extends DatabaseObject,P extends Preprocessor<O>,D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction<O,D>
          extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDistanceFunction<O,D>
              extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPreprocessorBasedDistanceFunction<O,P,D>
Type Parameters:
O - the type of DatabaseObject to compute the distances in between
P - the type of Preprocessor used
D - the type of Distance used
All Implemented Interfaces:
DistanceFunction<O,D>, PreprocessorBasedDistanceFunction<O,P,D>, MeasurementFunction<O,D>, PreprocessorBasedMeasurementFunction<O,P,D>, PreprocessorClient<P,O>, Parameterizable
Direct Known Subclasses:
AbstractCorrelationDistanceFunction, ERiCDistanceFunction, SubspaceDistanceFunction

public abstract class AbstractPreprocessorBasedDistanceFunction<O extends DatabaseObject,P extends Preprocessor<O>,D extends Distance<D>>
extends AbstractDistanceFunction<O,D>
implements PreprocessorBasedDistanceFunction<O,P,D>

Abstract super class for distance functions needing a preprocessor.

Author:
Elke Achtert

Field Summary
private  PreprocessorHandler<O,P> preprocessorHandler
          The handler class for the preprocessor.
 
Fields inherited from class de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction
distanceFactory
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
AbstractPreprocessorBasedDistanceFunction(Parameterization config, D distance)
          Constructor, supporting Parameterizable style classes.
 
Method Summary
 P getPreprocessor()
          Get the preprocessor of this handler
 void setDatabase(Database<O> database)
          Calls AbstractMeasurementFunction.setDatabase(de.lmu.ifi.dbs.elki.database.Database) and runs the preprocessor on the database.
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDistanceFunction
distance, distance
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction
getDatabase, getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance, valueOf
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
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.preprocessing.PreprocessorClient
getAssociationID, getDefaultPreprocessorClass, getPreprocessorDescription, getPreprocessorSuperClass
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.DistanceFunction
distance, distance, distance
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.MeasurementFunction
getDistanceFactory, infiniteDistance, nullDistance, undefinedDistance, valueOf
 

Field Detail

preprocessorHandler

private final PreprocessorHandler<O extends DatabaseObject,P extends Preprocessor<O>> preprocessorHandler
The handler class for the preprocessor.

Constructor Detail

AbstractPreprocessorBasedDistanceFunction

public AbstractPreprocessorBasedDistanceFunction(Parameterization config,
                                                 D distance)
Constructor, supporting Parameterizable style classes.

Parameters:
config - Parameterization
distance - Distance Factory
Method Detail

setDatabase

public void setDatabase(Database<O> database)
Calls AbstractMeasurementFunction.setDatabase(de.lmu.ifi.dbs.elki.database.Database) and runs the preprocessor on the database.

Specified by:
setDatabase in interface MeasurementFunction<O extends DatabaseObject,D extends Distance<D>>
Overrides:
setDatabase in class AbstractMeasurementFunction<O extends DatabaseObject,D extends Distance<D>>
Parameters:
database - the database to be set

getPreprocessor

public final P getPreprocessor()
Get the preprocessor of this handler

Returns:
Preprocessor

Release 0.3 (2010-03-31_1612)