#include <boost/concept/assert.hpp>
#include <boost/concept/usage.hpp>
Go to the source code of this file.
Namespaces | |
namespace | lshkit |
Classes | |
struct | lshkit::LshConcept< LSH > |
LSH concept checker. More... | |
struct | lshkit::DeltaLshConcept< LSH > |
DeltaLSH concept checker. More... |
An LSH class should define the following items to be used in the LSHKIT framework:
typedef ... Parameter;
typedef ... Domain;
LSH()
void reset(const Parameter &, RNG &);
LSH(const Parameter &, RNG &); // equivalent to LSH() followed by reset()
unsigned getRange () const;
unsigned operator () (const Domain) const;
template<class Archive> void serialize(Archive & ar, const unsigned int version)
Some of the LSH functions are created by rouding a real number to an integer, and the part rounded off (delta) usually carries useful information. Such LSH functions are modeled by the DeltaLSH concept, which should implement the following extra method:
unsigned operator () const (Domain, float *delta);