genbattle / dkm

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

K-Means Predict #9

Closed randuck-dev closed 5 years ago

randuck-dev commented 5 years ago

I've added a function that makes it possible to predict which class a certain point belongs to. It returns the index of the centroid aka. the class. A test has been added as well.

randuck-dev commented 5 years ago

Thank you for the in-depth feedback. I will apply the changes tonight when i get home from work.

randuck-dev commented 5 years ago

I've implemented the changes and I hope that they are like what you imagined (Y)

genbattle commented 5 years ago

Thank you for applying the changes I requested, it looks great! I've approved and merged the changes into master. Thanks again for contributing to this project :)