R/fit_assign.R
init_centers.Rd
Chooses initial cluster locations using Kmeans++
init_centers(X, k)
array Data points of dimension (n,d)
int The number of desired clusters
array Initial coordinates of clusters
X = rbind(c(0,0), c(1,1)) init_centers(X, 2) #> [,1] [,2] #> [1,] 1 1 #> [2,] 0 0