ini_kmeans function

Run a k-means algorithm to initialise clusters' allocation