Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was reading this article on $K$-Means and I got lost when it was time to assign objects to clusters. After calculating the centroids distance to every object, how can I calculate the minimum distance in other to assign objects to the nearest cluster?

share|cite|improve this question

Going through the article again, I found out that there isn't any need to find a minimum distance other than the distance between the centroids and other vectors. If the distance between a vector and two centroid A and B are 2.45 and 3.6 respectively, then the object is assigned to centroid A because of the lesser distance between them.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.