25 #ifndef __MLPACK_CORE_METRICS_LMETRIC_HPP
26 #define __MLPACK_CORE_METRICS_LMETRIC_HPP
72 template<
int Power,
bool TakeRoot = true>
85 template<
typename VecType1,
typename VecType2>
86 static double Evaluate(
const VecType1& a,
const VecType2& b);
117 #include "lmetric_impl.hpp"
std::string ToString() const
Linear algebra utility functions, generally performed on matrices or vectors.
LMetric< 2, true > EuclideanDistance
LMetric< 2, false > SquaredEuclideanDistance
LMetric< 1, false > ManhattanDistance
static double Evaluate(const VecType1 &a, const VecType2 &b)
Computes the distance between two points.
The L_p metric for arbitrary integer p, with an option to take the root.
LMetric< INT_MAX, false > ChebyshevDistance