View source: R/Lib_MapSpectralSpecies.R
init_kmeans | R Documentation |
computes k-means from nb_partitions subsets taken from dataPCA
init_kmeans(
dataPCA,
nb_partitions,
nbclusters,
nbCPU = 1,
algorithm = "Hartigan-Wong",
progressbar = FALSE
)
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) |
list of centroids and parameters needed to center/reduce data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.