sits_som_remove_samples: Evaluate cluster

View source: R/sits_som.R

sits_som_remove_samplesR Documentation

Evaluate cluster

Description

Remove samples from a given class inside a neuron of another class

Usage

sits_som_remove_samples(som_map, som_eval, class_cluster, class_remove)

Arguments

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"

Value

A new set of samples with the desired class neurons remove

Examples

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")
}

sits documentation built on Sept. 11, 2024, 6:36 p.m.