recluster

0th

Percentile

Re-clustering micro-clusters

Use a macro clustering algorithm to recluster micro-clusters into a final clustering.

Usage
recluster(macro, micro, type="auto", ...)
Arguments
macro
a macro clustering algorithm (class "DSC_Macro")
micro
a DSC object containing micro-clusters.
type
controls which clustering is used from dsc (typically micro-clusters).
...
additional arguments passed on.
Details

Takes centers and weights of the micro-clusters and applies the macro clustering algorithm.

Value

The object macro is altered and contains the clustering.

Aliases
  • recluster
Examples
set.seed(0)
### create a data stream and a micro-clustering
stream <- DSD_Gaussians(k=3, d=3)

sample <- DSC_Sample(k=50)
update(sample, stream, 500)
sample
  
### recluster using k-means
kmeans <- DSC_Kmeans(k=3)
recluster(kmeans, sample)

### plot clustering
plot(kmeans, stream, main="Macro-clusters (Sampling + k-means)")
Documentation reproduced from package stream, version 1.2-3, License: GPL-3

Community examples

Looks like there are no examples yet.