org.unigram.likelike.lsh.function
Interface IHashFunction

All Known Implementing Classes:
MinWiseFunction

public interface IHashFunction

Interface hash function for LSH.


Method Summary
 org.apache.hadoop.io.LongWritable returnClusterId(java.util.Set<java.lang.Long> featureVector, long seed)
          Compute hashing function.
 

Method Detail

returnClusterId

org.apache.hadoop.io.LongWritable returnClusterId(java.util.Set<java.lang.Long> featureVector,
                                                  long seed)
Compute hashing function.

Parameters:
featureVector - feature vector
seed - hash seed
Returns:
hashed value