Learn R Programming

sits (version 0.13.0)

sits_som_evaluate_cluster: Evaluate cluster

Description

This function evaluate the clusters created by SOM. Each cluster is a neuron or a set of neuron categorized with same label. It produces a sits tibble indicating the percentage of mixture of classes in each cluster.

Usage

sits_som_evaluate_cluster(som_map)

Arguments

som_map

An object returned by sits_som_map

Value

A tibble with the cluster and the percentage of classes mixtured in each cluster.

Examples

Run this code
# NOT RUN {
# Read a set of samples
# Get a new subset of samples evaluated by clustering methods
som_map <- sits_som_map(samples_modis_4bands,
    grid_xdim = 10, grid_ydim = 10,
    distance = "euclidean"
)
cluster_purity <- sits_som_evaluate_cluster(som_map)
# }

Run the code above in your browser using DataLab