Create as Static Copy of a Clustering
This representation cannot perform clustering anymore, but it also does not need the supporting data structures. It only stores the cluster centers and weights.
DSC_Static(x, type=c("auto", "micro", "macro"), k_largest=NULL, min_weight=NULL)
- The clustering (a DSD object) to copy.
- which clustering to copy.
- only copy the k largest (highest weight) clusters.
- only copy clusters with a weight larger or equal to
An object of class
DSC_Static(sub class of
DSC_R). The list also contains either
DSC_Macrodepending on what type of clustering was copied.
stream <- DSD_Gaussians(k=3, noise=0.05) dstream <- DSC_DStream(gridsize=0.05) update(dstream, stream, 500) dstream plot(dstream, stream) # create a static copy of the clustering static <- DSC_Static(dstream) static plot(static, stream) # copy only the 5 largest clusters static2 <- DSC_Static(dstream, k_largest=5) static2 plot(static2, stream) # copy all clusters with a weight of at least .3 static3 <- DSC_Static(dstream, min_weight=.3) static3 plot(static3, stream)