These functions support hierarchical agglomerative clustering in
sits. They provide support from creating a dendrogram and using it for
cleaning samples.
link[sits]{sits_cluster_dendro()}
takes a tibble with time series and
produces a sits tibble with an added "cluster" column. The function first
calculates a dendrogram and obtains a validity index for best clustering
using the adjusted Rand Index. After cutting the dendrogram using the chosen
validity index, it assigns a cluster to each sample.
link[sits]{sits_cluster_frequency()}
computes the contingency
table between labels
and clusters and produces a matrix.
Its input is a tibble produced by link[sits]{sits_cluster_dendro()}
.
link[sits]{sits_cluster_clean()}
takes a tibble with time series
that has an additional `cluster` produced by
link[sits]{sits_cluster_dendro()}
and removes labels that are minority in each cluster.