Package moa.clusterers.kmeanspm
Class DietzfelbingerHash
- java.lang.Object
-
- moa.clusterers.kmeanspm.DietzfelbingerHash
-
public class DietzfelbingerHash extends Object
Provides a Dietzfelbinger hash function. Citation: Mikkel Thorup: High Speed Hashing for Integers and Strings. CoRR abs/1504.06804 (2015)
-
-
Constructor Summary
Constructors Constructor Description DietzfelbingerHash(int hashSize, Random random)
Creates a Dietzfelbinger hash function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
hash(long value)
Dietzfelbinger hash function.void
nextHashFunction()
Generates a new Dietzfelbinger hash function.
-
-
-
Constructor Detail
-
DietzfelbingerHash
public DietzfelbingerHash(int hashSize, Random random)
Creates a Dietzfelbinger hash function.- Parameters:
hashSize
- size of the hash function (must be smaller than 31)random
- instance to generate a stream of pseudorandom numbers
-
-