minkowski_distance_p
- scipy.spatial.minkowski_distance_p(x, y, p=2.0)
Compute the pth power of the L**p distance between two arrays.
For efficiency, this function computes the L**p distance but does not extract the pth root. If p is 1 or infinity, this is equal to the actual L**p distance.
The last dimensions of x and y must be the same length. Any other dimensions must be compatible for broadcasting.