public class RandomIndex extends Object implements Long2IntInterface
| Constructor and Description |
|---|
RandomIndex(int kbit,
int lbit,
int hsize,
int numberFunctions)
Creates the random functions.
|
public RandomIndex(int kbit,
int lbit,
int hsize,
int numberFunctions)
kbit - The bits to be mappedlbit - The left shift of the bitshsize - The size of the featurs space (not included in the original algorithm)numberFunctions - The number of the hash functionspublic int[] hash(long x)
public int[] hashU(long x)
public int l2i(long l)
Long2IntInterfacel2i in interface Long2IntInterfacepublic int size()
size in interface Long2IntInterfaceCopyright © 2013. All rights reserved.