Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.distance.distancefunction.colorhistogram
Class HistogramIntersectionDistanceFunction<V extends NumberVector<V,?>>

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<V,DoubleDistance>
              extended by de.lmu.ifi.dbs.elki.distance.distancefunction.colorhistogram.HistogramIntersectionDistanceFunction<V>
Type Parameters:
V - Vector type
All Implemented Interfaces:
DistanceFunction<V,DoubleDistance>, MeasurementFunction<V,DoubleDistance>, Parameterizable

@Title(value="Color histogram intersection distance")
@Description(value="Distance function for color histograms that emphasizes \'strong\' bins.")
@Reference(authors="M. J. Swain, D. H. Ballard",
           title="Color Indexing",
           booktitle="International Journal of Computer Vision, 7(1), 32, 1991")
public class HistogramIntersectionDistanceFunction<V extends NumberVector<V,?>>
extends AbstractDistanceFunction<V,DoubleDistance>
implements Parameterizable

Intersection distance for color histograms. According to: M. J. Swain, D. H. Ballard:
Color indexing
International Journal of Computer Vision, 7(1), 32, 1991

Author:
Erich Schubert

Field Summary
 
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
HistogramIntersectionDistanceFunction()
          Constructor.
 
Method Summary
 DoubleDistance distance(V v1, V v2)
          Computes the distance between two given DatabaseObjects according to this distance function.
 
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, setDatabase, 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.distance.MeasurementFunction
getDistanceFactory, infiniteDistance, nullDistance, setDatabase, undefinedDistance, valueOf
 

Constructor Detail

HistogramIntersectionDistanceFunction

public HistogramIntersectionDistanceFunction()
Constructor. No parameters.

Method Detail

distance

public DoubleDistance distance(V v1,
                               V v2)
Description copied from interface: DistanceFunction
Computes the distance between two given DatabaseObjects according to this distance function.

Specified by:
distance in interface DistanceFunction<V extends NumberVector<V,?>,DoubleDistance>
Parameters:
v1 - first DatabaseObject
v2 - second DatabaseObject
Returns:
the distance between two given DatabaseObjects according to this distance function

Release 0.3 (2010-03-31_1612)