View source: R/init_kmeans_samples.R
init_kmeans_samples | R Documentation |
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
)
rast_sample |
data frame containing samples to use |
output_dir |
character. Path for output directory |
SelectBands |
numeric. bands selected from input_rast |
nbclusters |
numeric. number of clusters used in kmeans |
nbIter |
numeric. nb of iterations averaged to compute diversity indices |
Kmeans_info_save |
character. path where to save Kmeans_info |
algorithm |
character. algorithm used in the kmeans clustering |
nbCPU |
numeric. Number of CPUs available |
verbose |
boolean. set true for messages |
progressbar |
boolean. set true for progress bar during clustering |
Kmeans_info
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.