### Navigation

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

# scipy.spatial.distance.minkowski

`scipy.spatial.distance.``minkowski`(u, v, p)

  Computes the Minkowski distance between two 1-D arrays.

  The Minkowski distance between 1-D arrays u and v, is defined as

  Parameters : | u : (N,) array_like Input array. v : (N,) array_like Input array. p : int The order of the norm of the difference .
  Returns : | d : double The Minkowski distance between vectors u and v.

### Navigation

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