This is documentation for an old release of SciPy (version 0.12.0). Read this page in the documentation of the latest stable release (version 1.15.1).
Compute the L**p distance between two arrays.
Parameters : | x : (M, K) array_like
y : (N, K) array_like
p : float, 1 <= p <= infinity
|
---|
Examples
>>> minkowski_distance([[0,0],[0,0]], [[1,1],[0,1]])
array([ 1.41421356, 1. ])