OBJECT
- Object being hashedpublic class PolyHashComposition<OBJECT> extends HashComposition<OBJECT>
HashComposition
that uses a polynomial function to combine the
individual hashes. Based on the composition in the Caltech Large Scale
Image Search Toolbox.hashFunctions
Constructor and Description |
---|
PolyHashComposition(HashFunction<OBJECT> first,
HashFunction<OBJECT>... remainder)
Construct with the given functions.
|
PolyHashComposition(HashFunctionFactory<OBJECT> factory,
int nFuncs)
Construct with the factory which is used to produce the required number
of functions.
|
PolyHashComposition(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 PolyHashComposition(List<HashFunction<OBJECT>> functions)
functions
- the underlying hash functions.@SafeVarargs public PolyHashComposition(HashFunction<OBJECT> first, HashFunction<OBJECT>... remainder)
first
- the first functionremainder
- the remainder of the functionspublic PolyHashComposition(HashFunctionFactory<OBJECT> factory, int nFuncs)
factory
- the factory to use to produce the underlying hash functions.nFuncs
- the number of functions to create for the compositionpublic int computeHashCode(OBJECT object)
HashFunction
object
- the object