pyclustering icon indicating copy to clipboard operation
pyclustering copied to clipboard

wrong minkowski distance formula

Open MathTigran opened this issue 1 year ago • 0 comments

https://github.com/annoviko/pyclustering/blob/906532e4a5422479cc6813e852f9c3cb48ea7a64/pyclustering/utils/metric.py#L460-L481

in defenition of distance should be the absolute value of diferences betwen two points (distance += abs(point1[i] - point2[i])) also for numpy implementation should be the np.absolute.

MathTigran avatar Feb 19 '24 15:02 MathTigran