be.hogent.tarsos.lsh.families
Interface DistanceMeasure

All Known Implementing Classes:
CityBlockDistance, CosineDistance, EuclideanDistance, IntersectionDistance

public interface DistanceMeasure

A distance measure defines how distance is calculated, measured as it were, between two vectors. Each hash family has a corresponding distance measure which is abstracted using this interface.

Author:
Joren Six

Method Summary
 double distance(Vector one, Vector other)
          Calculate the distance between two vectors.
 

Method Detail

distance

double distance(Vector one,
                Vector other)
Calculate the distance between two vectors. From one to two.

Parameters:
one - The first vector.
other - The other vector
Returns:
A value representing the distance between two vectors.