OBJECT - Object being hashedpublic class PolyHashComposition<OBJECT> extends org.openimaj.util.hash.composition.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.| Constructor and Description |
|---|
PolyHashComposition(org.openimaj.util.hash.HashFunction<OBJECT> first,
org.openimaj.util.hash.HashFunction<OBJECT>... remainder)
Construct with the given functions.
|
PolyHashComposition(org.openimaj.util.hash.HashFunctionFactory<OBJECT> factory,
int nFuncs)
Construct with the factory which is used to produce the required number
of functions.
|
PolyHashComposition(List<org.openimaj.util.hash.HashFunction<OBJECT>> functions)
Construct with the given functions.
|
public PolyHashComposition(List<org.openimaj.util.hash.HashFunction<OBJECT>> functions)
functions - the underlying hash functions.@SafeVarargs public PolyHashComposition(org.openimaj.util.hash.HashFunction<OBJECT> first, org.openimaj.util.hash.HashFunction<OBJECT>... remainder)
first - the first functionremainder - the remainder of the functionspublic PolyHashComposition(org.openimaj.util.hash.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)