de.lmu.ifi.dbs.elki.distance.distancefunction
Class AbstractLocallyWeightedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDistanceFunction<O,DoubleDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDoubleDistanceFunction<O>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractLocallyWeightedDistanceFunction<O,P>
- Type Parameters:
O
- the type of DatabaseObject to compute the distances in betweenP
- preprocessor type
- All Implemented Interfaces:
- DistanceFunction<O,DoubleDistance>, MeasurementFunction<O,DoubleDistance>, PreprocessorClient<P,O>, Parameterizable
- Direct Known Subclasses:
- KernelBasedLocallyWeightedDistanceFunction, LocallyWeightedDistanceFunction
public abstract class AbstractLocallyWeightedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>>
- extends AbstractDoubleDistanceFunction<O>
- implements PreprocessorClient<P,O>
Abstract super class for locally weighted distance functions using a
preprocessor to compute the local weight matrix.
- Author:
- Elke Achtert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
preprocessorHandler
private PreprocessorHandler<O extends RealVector<O,?>,P extends Preprocessor<O>> preprocessorHandler
- The handler class for the preprocessor.
AbstractLocallyWeightedDistanceFunction
protected AbstractLocallyWeightedDistanceFunction()
- Provides an abstract locally weighted distance function.
setDatabase
public void setDatabase(Database<O> database,
boolean verbose,
boolean time)
- Description copied from interface:
MeasurementFunction
- Set the database that holds the associations for the DatabaseObject for
which the measurements should be computed.
- Specified by:
setDatabase
in interface MeasurementFunction<O extends RealVector<O,?>,DoubleDistance>
- Overrides:
setDatabase
in class AbstractMeasurementFunction<O extends RealVector<O,?>,DoubleDistance>
- Parameters:
database
- Databaseverbose
- unusedtime
- unused
setParameters
public List<String> setParameters(List<String> args)
throws ParameterException
- Calls
AbstractParameterizable#setParameters
and passes the remaining
parameters to the preprocessorHandler
.
- Specified by:
setParameters
in interface Parameterizable
- Overrides:
setParameters
in class AbstractParameterizable
- Parameters:
args
- parameters to set the attributes accordingly to
- Returns:
- a list containing the unused parameters
- Throws:
ParameterException
- in case of wrong parameter-setting
shortDescription
public String shortDescription()
- Description copied from class:
AbstractMeasurementFunction
- Returns the required input pattern.
- Specified by:
shortDescription
in interface Parameterizable
- Overrides:
shortDescription
in class AbstractMeasurementFunction<O extends RealVector<O,?>,DoubleDistance>
- Returns:
- Description of the class
getDefaultPreprocessorClassName
public String getDefaultPreprocessorClassName()
- Description copied from interface:
PreprocessorClient
- Returns the name of the default preprocessor.
- Specified by:
getDefaultPreprocessorClassName
in interface PreprocessorClient<P extends Preprocessor<O>,O extends RealVector<O,?>>
- Returns:
- the name of the default preprocessor, which is
KnnQueryBasedHiCOPreprocessor
getPreprocessorDescription
public String getPreprocessorDescription()
- Description copied from interface:
PreprocessorClient
- Returns the description for the preprocessor parameter.
- Specified by:
getPreprocessorDescription
in interface PreprocessorClient<P extends Preprocessor<O>,O extends RealVector<O,?>>
- Returns:
- the description for the preprocessor parameter
getPreprocessorSuperClass
public Class<P> getPreprocessorSuperClass()
- Description copied from interface:
PreprocessorClient
- Returns the super class for the preprocessor parameter.
- Specified by:
getPreprocessorSuperClass
in interface PreprocessorClient<P extends Preprocessor<O>,O extends RealVector<O,?>>
- Returns:
- the super class for the preprocessor, which is
Preprocessor