Performs the k-means++ algorithm to cluster the rows of the input matrix.
kmeanspp(x, n_cluster, n_init_clusterings = 10L, n_max_iter = 10L)
An object of class stats::kmeans
.
Input matrix (n x p)
Number of clusters
Number of repeated random initializations to perform
Number of maximum iterations to perform in the k-means algorithm
Estimation is repeated
David Arthur and Sergei Vassilvitskii. K-Means++: The advantages of careful seeding. In Proceedings of the Eighteenth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA '07, pages 1027––1035. Society for Industrial and Applied Mathematics, 2007.