Cluster time series in hierarchical mode.
Hierarchical clustering, as its name suggests,
is an algorithm that tries to create a hierarchy of groups in which,
as the level in the hierarchy increases, clusters are created by merging
the clusters from the next lower level, producing
an ordered sequence of groupings. The similarity measure used to
group time series in a cluster is the dtw metric.
The procedure is deterministic, so it will always give the same
result for a chosen set of similarity measures
(see tsclust
).
.sits_cluster_dendrogram(
samples,
bands,
dist_method = "dtw_basic",
linkage = "ward.D2",
...
)
Time series data and metadata to be used to generate the dendrogram.
Vector of bands to be clustered.
String with one of the supported distance
from proxy's dist, e.g. TWDTW
.
String with agglomeration method to be used. Can be any `hclust` method (see `hclust`). Default is 'ward.D2'.
Any additional parameters to be passed to dtwclust::tsclust() function.
A full dendrogram tree for data analysis.
`dtwclust` package (https://CRAN.R-project.org/package=dtwclust)