public class LSHMinHash extends LSH
LARGE_PRIME| Constructor and Description |
|---|
LSHMinHash(int s,
int b,
int n)
Instantiates a LSH instance that internally uses MinHash,
with s stages (or bands) and b buckets (per stage), for sets out of a
dictionary of n elements.
|
LSHMinHash(int s,
int b,
int n,
long seed)
Instantiates a LSH instance that internally uses MinHash,
with s stages (or bands) and b buckets (per stage), for sets out of a
dictionary of n elements.
|
| Modifier and Type | Method and Description |
|---|---|
long[][] |
getCoefficients()
Get the coefficients used by internal hashing functions.
|
int[] |
hash(boolean[] vector)
Bin this vector to corresponding buckets.
|
hashSignature, hashSignaturepublic LSHMinHash(int s,
int b,
int n)
s - stagesb - buckets (per stage)n - dictionary sizepublic LSHMinHash(int s,
int b,
int n,
long seed)
s - stagesb - buckets (per stage)n - dictionary sizeseed - random number generator seed. using the same value will
guarantee identical hashes across object instantiationsCopyright © 2019. All rights reserved.