### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Spatial algorithms and data structures (`scipy.spatial`) »
- scipy.spatial.distance »

# scipy.spatial.distance.mahalanobis

`scipy.spatial.distance.``mahalanobis`(u, v, VI)

  Computes the Mahalanobis distance between two n-vectors `u` and `v`, which is defiend as

  where `VI` is the inverse covariance matrix .

  Parameters : | u : ndarray An -dimensional vector. v : ndarray An -dimensional vector.
  Returns : | d : double The Mahalanobis distance between vectors `u` and `v`.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.9 Reference Guide (DRAFT) »
- Spatial algorithms and data structures (`scipy.spatial`) »
- scipy.spatial.distance »