lshkit::metric::l2sqr< T > Class Template Reference

Squred L2 distance. More...

#include <metric.h>

List of all members.

Public Member Functions

 l2sqr (unsigned dim)
float operator() (const T *first1, const T *first2) const

Detailed Description

template<typename T>
class lshkit::metric::l2sqr< T >

Squred L2 distance.

The square root operation is costly. For K-NN search, l2sqr gives the same ranking as l2.

The documentation for this class was generated from the following file:
Get LSHKIT at Fast, secure and Free Open Source software downloads doxygen