R/init_kmeans_samples.R
init_kmeans_samples.Rd
Compute kmeans from random subset of pixels extracted from an image
init_kmeans_samples(
rast_sample,
output_dir,
SelectBands = NULL,
nbclusters = 50,
nbIter = 20,
Kmeans_info_save = NULL,
algorithm = "Hartigan-Wong",
nbCPU = 1,
verbose = T,
progressbar = T
)
data frame containing samples to use
character. Path for output directory
numeric. bands selected from input_rast
numeric. number of clusters used in kmeans
numeric. nb of iterations averaged to compute diversity indices
character. path where to save Kmeans_info
character. algorithm used in the kmeans clustering
numeric. Number of CPUs available
boolean. set true for messages
boolean. set true for progress bar during clustering
Kmeans_info