public class MultiProbeHash extends Hash
| Constructor and Description |
|---|
MultiProbeHash(int d,
int k,
double w,
int H)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
double[] x)
Insert an item into the hash table.
|
public MultiProbeHash(int d,
int k,
double w,
int H)
d - the dimensionality of data.k - the number of random projection hash functions, which is usually
set to log(N) where N is the dataset size.w - the width of random projections. It should be sufficiently away
from 0. But we should not choose an w value that is too large,
which will increase the query time.H - the size of universal hash tables.