OBJECT - Object being hashedpublic class RandomProjectionHashComposition<OBJECT> extends HashComposition<OBJECT>
hashFunctions| Constructor and Description |
|---|
RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng,
HashFunction<OBJECT> first,
HashFunction<OBJECT>... remainder)
Construct with the given functions.
|
RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng,
HashFunctionFactory<OBJECT> factory,
int nFuncs)
Construct with the factory which is used to produce the required number
of functions.
|
RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng,
List<HashFunction<OBJECT>> functions)
Construct with the given functions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeHashCode(OBJECT object)
Compute the hash code for the object
|
public RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng, List<HashFunction<OBJECT>> functions)
rng - the random number generatorfunctions - the underlying hash functions.@SafeVarargs public RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng, HashFunction<OBJECT> first, HashFunction<OBJECT>... remainder)
rng - the random number generatorfirst - the first functionremainder - the remainder of the functionspublic RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng, HashFunctionFactory<OBJECT> factory, int nFuncs)
rng - the random number generatorfactory - the factory to use to produce the underlying hash functions.nFuncs - the number of functions to create for the compositionpublic int computeHashCode(OBJECT object)
HashFunctionobject - the object