

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object de.aitools.aq.algebra.vector.functions.DotProduct
public final class DotProduct
The Dot Product of two vectors is defined as the sum of the
pairwise products of the coordinate values of the vectors.
This is not a real proximity measure. A higher value of a
dot product does not necessarily signal more proximate vectors.
However, if vectors are prepared specially, the dot product can
be used as a measure of relevance.
That is why there is no
computeNormalizedProximity(Vector, Vector)
implemented:
The normalization depends on the special case.
So only use this if you know what you are doing.
Constructor Summary  

DotProduct()
Construct a new DotProduct . 
Method Summary  

double 
computeNormalizedProximity(Vector v1,
Vector 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(Vector v1,
Vector v2)
Compute a kind of proximity between two objects. 
Methods inherited from class java.lang.Object 

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Constructor Detail 

public DotProduct()
DotProduct
.
Method Detail 

public double computeProximity(Vector v1, Vector v2)
Proximity
computeProximity
in interface Proximity<Vector>
v1
 One object, to be compared to the...v2
 ...second object
public double computeNormalizedProximity(Vector v1, Vector v2)
Proximity
computeNormalizedProximity
in interface Proximity<Vector>
v1
 One object, to be compared to the...v2
 ...second object


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 