Package org.apache.mahout.common.distance

Interface Summary
DistanceMeasure This interface is used for objects which can determine a distance metric between two points
 

Class Summary
CosineDistanceMeasure This class implements a cosine distance metric by dividing the dot product of two vectors by the product of their lengths
EuclideanDistanceMeasure This class implements a Euclidean distance metric by summing the square root of the squared differences between each coordinate.
ManhattanDistanceMeasure This class implements a "manhattan distance" metric by summing the absolute values of the difference between each coordinate
SquaredEuclideanDistanceMeasure Like EuclideanDistanceMeasure but it does not take the square root.
TanimotoDistanceMeasure Tanimoto coefficient implementation.
WeightedDistanceMeasure Abstract implementation of DistanceMeasure with support for weights.
WeightedEuclideanDistanceMeasure This class implements a Euclidean distance metric by summing the square root of the squared differences between each coordinate, optionally adding weights.
WeightedManhattanDistanceMeasure This class implements a "Manhattan distance" metric by summing the absolute values of the difference between each coordinate, optionally with weights.
 



Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.