modify typo in docstring
@@ -132,7 +132,7 @@ cdef class DistanceMetric:
"manhattan" ManhattanDistance - ``sum(|x - y|)``
"chebyshev" ChebyshevDistance - ``max(|x - y|)``
"minkowski" MinkowskiDistance p ``sum(|x - y|^p)^(1/p)``
- "wminkowski" WMinkowskiDistance p, w ``sum(w * |x - y|^p)^(1/p)``
+ "wminkowski" WMinkowskiDistance p, w ``sum(|w * (x - y)|^p)^(1/p)``
"seuclidean" SEuclideanDistance V ``sqrt(sum((x - y)^2 / V))``
"mahalanobis" MahalanobisDistance V or VI ``sqrt((x - y)' V^-1 (x - y))``
============== ==================== ======== ===============================
@@ -567,12 +567,12 @@ cdef class MinkowskiDistance(DistanceMetric):
#------------------------------------------------------------
# W-Minkowski Distance
-# d = sum(w_i * (x_i^p - y_i^p)) ^ (1/p)
+# d = sum(w_i^p * (x_i^p - y_i^p)) ^ (1/p)
cdef class WMinkowskiDistance(DistanceMetric):
"""Weighted Minkowski Distance
.. math::
- D(x, y) = [\sum_i w_i (x_i - y_i)^p] ^ (1/p)
+ D(x, y) = [\sum_i |w_i * (x_i - y_i)|^p] ^ (1/p)
Weighted Minkowski Distance requires p >= 1 and finite.
