#include <composite.h>
Public Types | |
typedef LSH | Super |
The base LSH class. | |
typedef Super::Domain | Domain |
Public Member Functions | |
template<typename RNG> | |
void | reset (const Parameter ¶m, RNG &rng) |
template<typename RNG> | |
Tail (const Parameter ¶m, RNG &rng) | |
unsigned | getRange () const |
unsigned | operator() (Domain obj) const |
template<class Archive> | |
void | serialize (Archive &ar, const unsigned int version) |
Protected Attributes | |
LSH | lsh_ |
unsigned | range_ |
Classes | |
struct | Parameter |
The mod of an LSH function by some value N is usually still locality sensitive. This can be used to limit the hash value of certain LSH, so that the hash value can be used to index a fixed-sized hash table.
Let LSH be the original class, and N be the divisor, then the parameter type is defined as
struct Parameter { unsigned range; // the divisor. ... // the original parameters are inherited. };