be.hogent.tarsos.lsh.families
Class EuclidianHashFamily

java.lang.Object
  extended by be.hogent.tarsos.lsh.families.EuclidianHashFamily
All Implemented Interfaces:
HashFamily

public class EuclidianHashFamily
extends java.lang.Object
implements HashFamily


Constructor Summary
EuclidianHashFamily(int w, int dimensions)
           
 
Method Summary
 java.lang.Integer combine(int[] hashes)
          Combine a number of hashes generated by members of this hash function family.
 DistanceMeasure createDistanceMeasure()
          Create a new distance measure.
 HashFunction createHashFunction()
          Create a new hash function of this family.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EuclidianHashFamily

public EuclidianHashFamily(int w,
                           int dimensions)
Method Detail

createHashFunction

public HashFunction createHashFunction()
Description copied from interface: HashFamily
Create a new hash function of this family.

Specified by:
createHashFunction in interface HashFamily
Returns:
A new hash function of this family.

combine

public java.lang.Integer combine(int[] hashes)
Description copied from interface: HashFamily
Combine a number of hashes generated by members of this hash function family.

Specified by:
combine in interface HashFamily
Parameters:
hashes - The raw hashes that need to be combined.
Returns:
An integer representing a combination of the hashes. Normally, unique hash values result in a unique, deterministic combined hash value.

createDistanceMeasure

public DistanceMeasure createDistanceMeasure()
Description copied from interface: HashFamily
Create a new distance measure.

Specified by:
createDistanceMeasure in interface HashFamily
Returns:
The distance measure used to sort neighbourhood candidates.