K-means is an algorithm to find clusters in a population of two-dimensional data points. This implementation takes 4 parameters: