lshkit::metric::basic_hamming Struct Reference

(Basic) hamming distance More...

#include <metric.h>

Inheritance diagram for lshkit::metric::basic_hamming:

lshkit::metric::hamming< T > List of all members.

Public Member Functions

template<typename B>
unsigned __hamming (B a, B b)
unsigned __hamming (unsigned char c1, unsigned char c2) const

Static Public Attributes

static unsigned char_bit_cnt []

Detailed Description

(Basic) hamming distance

Take the hamming distance between two values of type T as bit-vectors. Normally you should use hamming instead of basic_hamming.


The documentation for this struct was generated from the following files:
Get LSHKIT at SourceForge.net. Fast, secure and Free Open Source software downloads doxygen