Skip to main content
2 of 2
deleted 1 character in body
julien
  • 10.3k
  • 6
  • 56
  • 94

You should have a look at the K-means clustering algorithm, which produces what you are looking for.

julien
  • 10.3k
  • 6
  • 56
  • 94