annoviko / pyclustering

pyclustering is a Python, C++ data mining library.
https://pyclustering.github.io/
BSD 3-Clause "New" or "Revised" License
1.16k stars 249 forks source link

wrong minkowski distance formula #702

Open MathTigran opened 7 months ago

MathTigran commented 7 months ago

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.