This project is an example implementation k-means in ruby with rmagick library to explain the distribution of elements in the clusters.
k-means clustering is a method of vector quantization, originally from signal processing, that is popular for cluster analysis in data mining. k-means clustering aims to partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean, serving as a prototype of the cluster.
To generate animation with clustered elements in clusters during iterations.
ruby test.rb