---
name: "mlpack_metric"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_metric"
---

# mlpack\_metric(3)

## NAME

mlpack::metric -

## SYNOPSIS

### Classes

class **IPMetric**\
 class **LMetric**\
 *The L\_p metric for arbitrary integer p, with an option to take the root.*  class **MahalanobisDistance**\
 *The Mahalanobis distance, which is essentially a stretched Euclidean distance.*

### Typedefs

typedef **LMetric**\< INT\_MAX, false \> **ChebyshevDistance**\
 typedef **LMetric**\< 2, true \> **EuclideanDistance**\
 typedef **LMetric**\< 1, false \> **ManhattanDistance**\
 typedef **LMetric**\< 2, false \> **SquaredEuclideanDistance**\

## Typedef Documentation

### typedef LMetric\<INT\_MAX, false\> mlpack::metric::ChebyshevDistance

Definition at line 110 of file lmetric.hpp.

### typedef LMetric\<2, true\> mlpack::metric::EuclideanDistance

Definition at line 105 of file lmetric.hpp.

### typedef LMetric\<1, false\> mlpack::metric::ManhattanDistance

Definition at line 95 of file lmetric.hpp.

### typedef LMetric\<2, false\> mlpack::metric::SquaredEuclideanDistance

Definition at line 100 of file lmetric.hpp.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
