### Navigation

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

# scipy.spatial.minkowski_distance

`scipy.spatial.``minkowski_distance`(x, y, p=2)

  Compute the L**p distance between two arrays.

  Parameters : | x : (M, K) array_like Input array. y : (N, K) array_like Input array. p : float, 1 <= p <= infinity Which Minkowski p-norm to use.

  Examples

      >>> minkowski_distance([[0,0],[0,0]], [[1,1],[0,1]])
      array([ 1.41421356,  1.        ])

### Navigation

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