View source: R/DSC_Hierarchical.R
DSC_Hierarchical | R Documentation |
Macro Clusterer. Implementation of hierarchical clustering to recluster a set of micro-clusters.
DSC_Hierarchical(
formula = NULL,
k = NULL,
h = NULL,
method = "complete",
min_weight = NULL,
description = NULL
)
formula |
|
k |
The number of desired clusters. |
h |
Height where to cut the dendrogram. |
method |
the agglomeration method to be used. This should be (an
unambiguous abbreviation of) one of |
min_weight |
micro-clusters with a weight less than this will be ignored for reclustering. |
description |
optional character string to describe the clustering method. |
Please refer to hclust()
for more details on the behavior of the
algorithm.
update()
and recluster()
invisibly return the assignment of the data points
to clusters.
Note that this clustering cannot be updated iteratively and every time it is used for (re)clustering, the old clustering is deleted.
A list of class DSC, DSC_R, DSC_Macro, and
DSC_Hierarchical
. The list contains the following items:
description |
The name of the algorithm in the DSC object. |
RObj |
The underlying R object. |
Michael Hahsler
Other DSC_Macro:
DSC_DBSCAN()
,
DSC_EA()
,
DSC_Kmeans()
,
DSC_Macro()
,
DSC_Reachability()
,
DSC_SlidingWindow()
stream <- DSD_Gaussians(k = 3, d = 2, noise = 0.05)
# Use a moving window for "micro-clusters and recluster with HC (macro-clusters)
cl <- DSC_TwoStage(
micro = DSC_Window(horizon = 100),
macro = DSC_Hierarchical(h = .1, method = "single")
)
update(cl, stream, 500)
cl
plot(cl, stream)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.