Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.distance.distancefunction
Class DiSHDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
          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>
                      extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractCorrelationDistanceFunction<O,P,PreferenceVectorBasedCorrelationDistance>
                          extended by de.lmu.ifi.dbs.elki.distance.distancefunction.PreferenceVectorBasedCorrelationDistanceFunction<V,P>
                              extended by de.lmu.ifi.dbs.elki.distance.distancefunction.DiSHDistanceFunction<V,P>
All Implemented Interfaces:
DistanceFunction<V,PreferenceVectorBasedCorrelationDistance>, MeasurementFunction<V,PreferenceVectorBasedCorrelationDistance>, Loggable, Parameterizable

public class DiSHDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>>
extends PreferenceVectorBasedCorrelationDistanceFunction<V,P>

Distance function used in the DiSH algorithm.

Author:
Elke Achtert

Field Summary
static String DEFAULT_PREPROCESSOR_CLASS
          The default preprocessor class name.
static String PREPROCESSOR_CLASS_D
          Description for parameter preprocessor.
 
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.PreferenceVectorBasedCorrelationDistanceFunction
ASSOCIATION_ID, DEFAULT_EPSILON, EPSILON_D, EPSILON_P, PREPROCESSOR_SUPER_CLASS
 
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractCorrelationDistanceFunction
SEPARATOR
 
Fields inherited from class de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction
INFINITY_PATTERN
 
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
optionHandler
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug
 
Constructor Summary
DiSHDistanceFunction()
           
 
Method Summary
 PreferenceVectorBasedCorrelationDistance correlationDistance(V v1, V v2, BitSet pv1, BitSet pv2)
          Computes the correlation distance between the two specified vectors according to the specified preference vectors.
(package private)  String getDefaultPreprocessorClassName()
          Returns the name of the default preprocessor.
(package private)  String getPreprocessorClassDescription()
          Returns the description for parameter preprocessor.
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.PreferenceVectorBasedCorrelationDistanceFunction
correlationDistance, getAssociationID, getEpsilon, getPreprocessorSuperClassName, infiniteDistance, nullDistance, setParameters, undefinedDistance, valueOf, weightedDistance, weightedDistance, weightedPrefereneceVectorDistance, weightedPrefereneceVectorDistance
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractCorrelationDistanceFunction
description, distance
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPreprocessorBasedDistanceFunction
getAttributeSettings, getPreprocessor, setDatabase
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDistanceFunction
distance, distance, isInfiniteDistance, isNullDistance, isUndefinedDistance
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction
getDatabase, matches, requiredInputPattern, setRequiredInputPattern
 
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
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.MeasurementFunction
requiredInputPattern
 
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable
checkGlobalParameterConstraints, getParameters, getPossibleOptions, inlineDescription
 

Field Detail

DEFAULT_PREPROCESSOR_CLASS

public static final String DEFAULT_PREPROCESSOR_CLASS
The default preprocessor class name.


PREPROCESSOR_CLASS_D

public static final String PREPROCESSOR_CLASS_D
Description for parameter preprocessor.

Constructor Detail

DiSHDistanceFunction

public DiSHDistanceFunction()
Method Detail

correlationDistance

public PreferenceVectorBasedCorrelationDistance correlationDistance(V v1,
                                                                    V v2,
                                                                    BitSet pv1,
                                                                    BitSet pv2)
Computes the correlation distance between the two specified vectors according to the specified preference vectors.

Specified by:
correlationDistance in class PreferenceVectorBasedCorrelationDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>>
Parameters:
v1 - first RealVector
v2 - second RealVector
pv1 - the first preference vector
pv2 - the second preference vector
Returns:
the correlation distance between the two specified vectors

getDefaultPreprocessorClassName

String getDefaultPreprocessorClassName()
Returns the name of the default preprocessor.

Specified by:
getDefaultPreprocessorClassName in class AbstractCorrelationDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>,PreferenceVectorBasedCorrelationDistance>

getPreprocessorClassDescription

String getPreprocessorClassDescription()
Returns the description for parameter preprocessor.

Specified by:
getPreprocessorClassDescription in class AbstractCorrelationDistanceFunction<V extends RealVector<V,?>,P extends Preprocessor<V>,PreferenceVectorBasedCorrelationDistance>

Release 0.1 (2008-07-10_1838)