public class LSHSuperBit extends LSH implements Serializable
LARGE_PRIME| Constructor and Description |
|---|
LSHSuperBit()
Empty constructor, used only for serialization.
|
LSHSuperBit(int stages,
int buckets,
int dimensions)
LSH implementation relying on SuperBit, to bin vectors s times (stages)
in b buckets (per stage), in a space with n dimensions.
|
LSHSuperBit(int stages,
int buckets,
int dimensions,
long seed)
LSH implementation relying on SuperBit, to bin vectors s times (stages)
in b buckets (per stage), in a space with n dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
hash(double[] vector)
Hash (bin) a vector in s stages into b buckets.
|
int[] |
hash(int[] vector)
Hash (bin) a vector in s stages into b buckets.
|
hashSignature, hashSignaturepublic LSHSuperBit(int stages,
int buckets,
int dimensions)
stages - stagesbuckets - buckets (per stage)dimensions - dimensionalitypublic LSHSuperBit(int stages,
int buckets,
int dimensions,
long seed)
stages - stagesbuckets - buckets (per stage)dimensions - dimensionalityseed - random number generator seed. using the same value will
guarantee identical hashes across object instantiationspublic LSHSuperBit()
Copyright © 2019. All rights reserved.