de.aitools.aq.algebra.vector.functions
Interface Similarity<T>

Type Parameters:
T - The class of the objects of which the similarity can be computed
All Superinterfaces:
Proximity<T>
All Known Implementing Classes:
CosineSimilarity

public interface Similarity<T>
extends Proximity<T>

A measure for computing how similar two objects are. The notion of similarity depends on the concrete implementation. In general such a measure depends on certain criteria while it ignores other.
For example for a TriangleAngleSimilarity two triangles could be very similar if the three angles of each of them are the same, although the triangles are far away from each other (what would result in a high Distance).
The Proximity of a similarity measure is most likely the same as the similarity.

Version:
$Id: Similarity.java,v 1.2 2011/02/21 20:19:01 dogu3912 Exp $
Author:
tim.gollub(/\t)uni-weimar.de, johannes.kiesel(/\t)uni-weimar.de

Method Summary
 double computeSimilarity(T v1, T v2)
          Compute the Similarity between two objects.
 
Methods inherited from interface de.aitools.aq.algebra.vector.functions.Proximity
computeNormalizedProximity, computeProximity
 

Method Detail

computeSimilarity

double computeSimilarity(T v1,
                         T v2)
Compute the Similarity between two objects. A higher value signals higher similarity.

Parameters:
v1 - One object, to be compared to the...
v2 - ...second object
Returns:
Computed similarity