mlpack  2.0.1
Classes | Typedefs
mlpack::metric Namespace Reference

Classes

class  IPMetric
 The inner product metric, IPMetric, takes a given Mercer kernel (KernelType), and when Evaluate() is called, returns the distance between the two points in kernel space: More...
 
class  LMetric
 The L_p metric for arbitrary integer p, with an option to take the root. More...
 
class  MahalanobisDistance
 The Mahalanobis distance, which is essentially a stretched Euclidean distance. More...
 

Typedefs

typedef LMetric< INT_MAX, false > ChebyshevDistance
 The L-infinity distance. More...
 
typedef LMetric< 2, true > EuclideanDistance
 The Euclidean (L2) distance. More...
 
typedef LMetric< 1, false > ManhattanDistance
 The Manhattan (L1) distance. More...
 
typedef LMetric< 2, false > SquaredEuclideanDistance
 The squared Euclidean (L2) distance. More...
 

Typedef Documentation

◆ ChebyshevDistance

typedef LMetric<INT_MAX, false> mlpack::metric::ChebyshevDistance

The L-infinity distance.

Definition at line 118 of file lmetric.hpp.

◆ EuclideanDistance

The Euclidean (L2) distance.

Definition at line 113 of file lmetric.hpp.

◆ ManhattanDistance

The Manhattan (L1) distance.

Definition at line 102 of file lmetric.hpp.

◆ SquaredEuclideanDistance

The squared Euclidean (L2) distance.

Note that this is not technically a metric! But it can sometimes be used when distances are required.

Definition at line 108 of file lmetric.hpp.