File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ cdef class DistanceMetric:
130
130
-------------- -------------------- -------- -------------------------------
131
131
"euclidean" EuclideanDistance - ``sqrt(sum((x - y)^2))``
132
132
"manhattan" ManhattanDistance - ``sum(|x - y|)``
133
- "chebyshev" ChebyshevDistance - ``sum( max(|x - y|) )``
133
+ "chebyshev" ChebyshevDistance - ``max(|x - y|)``
134
134
"minkowski" MinkowskiDistance p ``sum(|x - y|^p)^(1/p)``
135
135
"wminkowski" WMinkowskiDistance p, w ``sum(w * |x - y|^p)^(1/p)``
136
136
"seuclidean" SEuclideanDistance V ``sqrt(sum((x - y)^2 / V))``
@@ -499,7 +499,7 @@ cdef class ManhattanDistance(DistanceMetric):
499
499
500
500
#------------------------------------------------------------
501
501
# Chebyshev Distance
502
- # d = max_i(abs(x_i), abs( y_i))
502
+ # d = max_i(abs(x_i - y_i))
503
503
cdef class ChebyshevDistance (DistanceMetric ):
504
504
"""Chebyshev/Infinity Distance
505
505
You can’t perform that action at this time.
0 commit comments