R/Lib_MapSpectralSpecies.R
init_kmeans.Rd
computes k-means from nb_partitions subsets taken from dataPCA
init_kmeans(
dataPCA,
nb_partitions,
nbclusters,
nbCPU = 1,
algorithm = "Hartigan-Wong",
progressbar = FALSE
)
numeric. initial dataset sampled from PCA image
numeric. number of k-means then averaged
numeric. number of clusters used in kmeans
numeric. Number of CPUs available
character. algorithm used in the kmeans clustering
boolean. should progress bar be displayed (set to TRUE only if no conflict of parallel process)
list of centroids and parameters needed to center/reduce data