Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.distance.similarityfunction
Class ClusterSimilarity

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.similarityfunction.AbstractSimilarityFunction<O,IntegerDistance>
                  extended by de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractIntegerSimilarityFunction<Cluster<?>>
                      extended by de.lmu.ifi.dbs.elki.distance.similarityfunction.ClusterSimilarity
All Implemented Interfaces:
MeasurementFunction<Cluster<?>,IntegerDistance>, SimilarityFunction<Cluster<?>,IntegerDistance>, Loggable, Parameterizable

public class ClusterSimilarity
extends AbstractIntegerSimilarityFunction<Cluster<?>>

Author:
Arthur Zimek

Field Summary
 
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
ClusterSimilarity()
           
 
Method Summary
 IntegerDistance similarity(Cluster<?> o1, Cluster<?> o2)
          Computes the similarity between two given DatabaseObjects according to this similarity function.
 IntegerDistance similarity(Integer id1, Cluster<?> cluster2)
          Returns the similarity between the two specified objects.
 IntegerDistance similarity(Integer id1, Integer id2)
          Returns the similarity between the two objects specified by their object ids.
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractIntegerSimilarityFunction
infiniteDistance, isInfiniteDistance, isNullDistance, isUndefinedDistance, nullDistance, undefinedDistance, valueOf
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction
getDatabase, matches, requiredInputPattern, setDatabase, setRequiredInputPattern
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
addOption, checkGlobalParameterConstraints, deleteOption, description, description, description, getAttributeSettings, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters, 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, setDatabase
 
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable
checkGlobalParameterConstraints, description, getAttributeSettings, getParameters, getPossibleOptions, inlineDescription, setParameters
 

Constructor Detail

ClusterSimilarity

public ClusterSimilarity()
Method Detail

similarity

public IntegerDistance similarity(Integer id1,
                                  Integer id2)
Description copied from interface: SimilarityFunction
Returns the similarity between the two objects specified by their object ids.

Parameters:
id1 - first object id
id2 - second object id
Returns:
the similarity between the two objects specified by their object ids

similarity

public IntegerDistance similarity(Cluster<?> o1,
                                  Cluster<?> o2)
Description copied from interface: SimilarityFunction
Computes the similarity between two given DatabaseObjects according to this similarity function.

Specified by:
similarity in interface SimilarityFunction<Cluster<?>,IntegerDistance>
Overrides:
similarity in class AbstractSimilarityFunction<Cluster<?>,IntegerDistance>
Parameters:
o1 - first DatabaseObject
o2 - second DatabaseObject
Returns:
the similarity between two given DatabaseObjects according to this similarity function

similarity

public IntegerDistance similarity(Integer id1,
                                  Cluster<?> cluster2)
Description copied from interface: SimilarityFunction
Returns the similarity between the two specified objects.

Specified by:
similarity in interface SimilarityFunction<Cluster<?>,IntegerDistance>
Overrides:
similarity in class AbstractSimilarityFunction<Cluster<?>,IntegerDistance>
Parameters:
id1 - first object id
cluster2 - second DatabaseObject
Returns:
the similarity between the two objects specified by their object ids

Release 0.1 (2008-07-10_1838)