de.lmu.ifi.dbs.elki.distance.distancefunction
Class AbstractCorrelationDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends CorrelationDistance<D>>
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,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPreprocessorBasedDistanceFunction<O,P,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractCorrelationDistanceFunction<O,P,D>
- All Implemented Interfaces:
- DistanceFunction<O,D>, MeasurementFunction<O,D>, Loggable, Parameterizable
- Direct Known Subclasses:
- PCABasedCorrelationDistanceFunction, PreferenceVectorBasedCorrelationDistanceFunction
public abstract class AbstractCorrelationDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends CorrelationDistance<D>>
- extends AbstractPreprocessorBasedDistanceFunction<O,P,D>
Abstract super class for correlation based distance functions. Provides the
Correlation distance for real valued vectors. All subclasses must implement a
method to process the preprocessing step in terms of doing the PCA for each
object of the database.
- Author:
- Elke Achtert
Constructor Summary |
AbstractCorrelationDistanceFunction()
Provides a CorrelationDistanceFunction with a pattern defined to accept
Strings that define an Integer followed by a separator followed by a
Double. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
addOption, checkGlobalParameterConstraints, deleteOption, description, description, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEPARATOR
public static final Pattern SEPARATOR
- Indicates a separator.
AbstractCorrelationDistanceFunction
public AbstractCorrelationDistanceFunction()
- Provides a CorrelationDistanceFunction with a pattern defined to accept
Strings that define an Integer followed by a separator followed by a
Double.
distance
public D distance(O rv1,
O rv2)
- Provides the Correlation distance between the given two vectors.
- Parameters:
rv1
- first DatabaseObjectrv2
- second DatabaseObject
- Returns:
- the Correlation distance between the given two vectors as an
instance of
CorrelationDistance
. - See Also:
DistanceFunction.distance(de.lmu.ifi.dbs.elki.data.DatabaseObject,
de.lmu.ifi.dbs.elki.data.DatabaseObject)
description
public String description()
- Returns a description of the class and the required parameters.
- Specified by:
description
in interface Parameterizable
- Overrides:
description
in class AbstractParameterizable
- Returns:
- String a description of the class and the required parameters
- See Also:
Parameterizable.description()
correlationDistance
abstract D correlationDistance(O dv1,
O dv2)
- Computes the correlation distance between the two specified vectors.
- Parameters:
dv1
- first RealVectordv2
- second RealVector
- Returns:
- the correlation distance between the two specified vectors
getDefaultPreprocessorClassName
abstract String getDefaultPreprocessorClassName()
- Returns the name of the default preprocessor.
- Specified by:
getDefaultPreprocessorClassName
in class AbstractPreprocessorBasedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends CorrelationDistance<D>>
getPreprocessorClassDescription
abstract String getPreprocessorClassDescription()
- Returns the description for parameter preprocessor.
- Specified by:
getPreprocessorClassDescription
in class AbstractPreprocessorBasedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends CorrelationDistance<D>>
getPreprocessorSuperClassName
abstract Class<? extends Preprocessor> getPreprocessorSuperClassName()
- Returns the super class for the preprocessor.
- Specified by:
getPreprocessorSuperClassName
in class AbstractPreprocessorBasedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends CorrelationDistance<D>>
getAssociationID
abstract AssociationID getAssociationID()
- Returns the assocoiation ID for the association to be set by the preprocessor.
- Specified by:
getAssociationID
in class AbstractPreprocessorBasedDistanceFunction<O extends RealVector<O,?>,P extends Preprocessor<O>,D extends CorrelationDistance<D>>