get_kmeans: computes k-means from nbIter subsets taken from dataPCA

View source: R/get_kmeans.R

get_kmeansR Documentation

computes k-means from nbIter subsets taken from dataPCA

Description

computes k-means from nbIter subsets taken from dataPCA

Usage

get_kmeans(
  rast_sample,
  nbIter,
  nbclusters = 50,
  nbCPU = 1,
  algorithm = "Hartigan-Wong",
  progressbar = TRUE
)

Arguments

rast_sample

numeric. initial dataset sampled from PCA image

nbIter

numeric. nb of iterations averaged to compute diversity indices

nbclusters

numeric. number of clusters used in kmeans

nbCPU

numeric. Number of CPUs available

algorithm

character. algorithm used in the kmeans clustering

progressbar

boolean. set true for progress bar during clustering

Value

list of centroids and parameters needed to center/reduce data


jbferet/biodivMapR documentation built on April 12, 2025, 1:32 p.m.