A PHP implementation of the k-means algorithm