#include <knncpp.h>
|
| 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 val) const |
| |
template<typename Scalar>
struct knncpp::ManhattenDistance< Scalar >
Manhatten distance functor. This the same as the L1 minkowski distance but more efficient.
- See also
- EuclideanDistance, ChebyshevDistance, MinkowskiDistance
Definition at line 51 of file knncpp.h.
◆ operator()() [1/3]
template<typename Scalar >
template<typename DerivedA , typename DerivedB >
| Scalar knncpp::ManhattenDistance< Scalar >::operator() |
( |
const Eigen::MatrixBase< DerivedA > & |
lhs, |
|
|
const Eigen::MatrixBase< DerivedB > & |
rhs |
|
) |
| const |
|
inline |
Compute the unrooted distance between two vectors.
- Parameters
-
| lhs | vector on left hand side |
| rhs | vector on right hand side |
Definition at line 56 of file knncpp.h.
◆ operator()() [2/3]
template<typename Scalar >
Compute the unrooted distance between two scalars.
- Parameters
-
| lhs | scalar on left hand side |
| rhs | scalar on right hand side |
Definition at line 71 of file knncpp.h.
References abs().
◆ operator()() [3/3]
template<typename Scalar >
Compute the root of a unrooted distance value.
- Parameters
-
| value | unrooted distance value |
Definition at line 77 of file knncpp.h.
The documentation for this struct was generated from the following file:
- /root/ACloudViewer/plugins/core/Standard/qTreeIso/include/knncpp.h