![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <knncpp.h>
Classes | |
| struct | BitCount |
| struct | XOR |
Public Member Functions | |
| template<typename DerivedA , typename DerivedB > | |
| Scalar | operator() (const Eigen::MatrixBase< DerivedA > &lhs, const Eigen::MatrixBase< DerivedB > &rhs) const |
| Scalar | operator() (const Scalar lhs, const Scalar rhs) const |
| Scalar | operator() (const Scalar value) const |
Hamming distance functor. The distance vectors have to be of integral type and should hold the information vectors as bitmasks. Performs a XOR operation on the vectors and counts the number of set ones.
|
inline |
Compute the unrooted distance between two vectors.
| lhs | vector on left hand side |
| rhs | vector on right hand side |
|
inline |
Compute the unrooted distance between two scalars.
| lhs | scalar on left hand side |
| rhs | scalar on right hand side |
|
inline |
Compute the root of a unrooted distance value.
| value | unrooted distance value |