OBJECT - Object being hashedpublic class RandomProjectionHashComposition<OBJECT> extends org.openimaj.util.hash.composition.HashComposition<OBJECT>
| Constructor and Description |
|---|
RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng,
org.openimaj.util.hash.HashFunction<OBJECT> first,
org.openimaj.util.hash.HashFunction<OBJECT>... remainder)
Construct with the given functions.
|
RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng,
org.openimaj.util.hash.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<org.openimaj.util.hash.HashFunction<OBJECT>> functions)
Construct with the given functions.
|
public RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng, List<org.openimaj.util.hash.HashFunction<OBJECT>> functions)
rng - the random number generatorfunctions - the underlying hash functions.@SafeVarargs public RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng, org.openimaj.util.hash.HashFunction<OBJECT> first, org.openimaj.util.hash.HashFunction<OBJECT>... remainder)
rng - the random number generatorfirst - the first functionremainder - the remainder of the functionspublic RandomProjectionHashComposition(cern.jet.random.engine.MersenneTwister rng, org.openimaj.util.hash.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)