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

Type Parameters:
T - The class of the objects of which proximity can be computed
All Known Subinterfaces:
Distance<T>, Similarity<T>
All Known Implementing Classes:
CosineSimilarity, DotProduct, EuclideanDistance, ManhattanDistance

public interface Proximity<T>

A measure for computing the proximity of two objects of same class. A higher value signals higher proximity.

Version:
$Id: Proximity.java,v 1.1 2011/02/21 20:19:00 dogu3912 Exp $
Author:
johannes.kiesel(/\t)uni-weimar.de

Method Summary
 double computeNormalizedProximity(T v1, T v2)
          Compute a kind of proximity between two objects.
The value returned by this method has to be between 0 (meaning they are as far away (according to the proximity measure) from each other as possible) and 1 (identical objects according to the proximity measure).
 double computeProximity(T v1, T v2)
          Compute a kind of proximity between two objects.
 

Method Detail

computeProximity

double computeProximity(T v1,
                        T v2)
Compute a kind of proximity between two objects. A higher value signals higher proximity.

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

computeNormalizedProximity

double computeNormalizedProximity(T v1,
                                  T v2)
Compute a kind of proximity between two objects.
The value returned by this method has to be between 0 (meaning they are as far away (according to the proximity measure) from each other as possible) and 1 (identical objects according to the proximity measure).

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