public abstract class LSH extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static long |
LARGE_PRIME |
| Constructor and Description |
|---|
LSH()
Instantiate an empty LSH instance (useful only for serialization).
|
LSH(int stages,
int buckets)
Instantiates a LSH instance with s stages (or bands) and b buckets (per
stage), in a space with n dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
hashSignature(boolean[] signature)
Hash a signature.
|
int[] |
hashSignature(int[] signature)
Hash a signature.
|
protected static final long LARGE_PRIME
public LSH(int stages,
int buckets)
stages - stagesbuckets - buckets (per stage)public LSH()
public final int[] hashSignature(int[] signature)
signature - public final int[] hashSignature(boolean[] signature)
signature - Copyright © 2019. All rights reserved.