init_kmeans: computes k-means from nb_partitions subsets taken from...

View source: R/Lib_MapSpectralSpecies.R

init_kmeansR Documentation

computes k-means from nb_partitions subsets taken from dataPCA

Description

computes k-means from nb_partitions subsets taken from dataPCA

Usage

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


jbferet/biodivMapR documentation built on April 25, 2024, 10:44 p.m.