computes k-means from nb_partitions subsets taken from dataPCA

init_kmeans(
  dataPCA,
  nb_partitions,
  nbclusters,
  nbCPU = 1,
  algorithm = "Hartigan-Wong",
  progressbar = FALSE
)

Arguments

dataPCA

numeric. initial dataset sampled from PCA image

nb_partitions

numeric. number of k-means then averaged

nbclusters

numeric. number of clusters used in kmeans

nbCPU

numeric. Number of CPUs available

algorithm

character. algorithm used in the kmeans clustering

progressbar

boolean. should progress bar be displayed (set to TRUE only if no conflict of parallel process)

Value

list of centroids and parameters needed to center/reduce data