sits_som_remove_samples | R Documentation |
Remove samples from a given class inside a neuron of another class
sits_som_remove_samples(som_map, som_eval, class_cluster, class_remove)
som_map |
A SOM map produced by the som_map() function |
som_eval |
An evaluation produced by the som_eval() function |
class_cluster |
Dominant class of a set of neurons |
class_remove |
Class to be removed from the neurons of the "class_cluster" |
A new set of samples with the desired class neurons remove
if (sits_run_examples()) {
# create a som map
som_map <- sits_som_map(samples_modis_ndvi)
# evaluate the som map and create clusters
som_eval <- sits_som_evaluate_cluster(som_map)
# clean the samples
new_samples <- sits_som_remove_samples(som_map, som_eval, "Pasture", "Cerrado")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.