genbattle / dkm

A generic C++11 k-means clustering implementation
MIT License
209 stars 47 forks source link

Invalid std::vector::reserve argument in closest_distance #6

Closed astepanov83 closed 6 years ago

astepanov83 commented 6 years ago

The issue is minor

In closest_distance: distances.reserve(k); but should be distances.reserve(data.size());

genbattle commented 6 years ago

Hi, thanks for reporting this issue.

I'll look into fixing it as soon as I have some time.

genbattle commented 6 years ago

Fixed in the latest master.