Learn R Programming

stream (version 0.1-1)

DSC_Static: Create as Static Copy of a Clustering

Description

This representation cannot perform clustering anymore, but it also does not need the supporting data structures. It only stores the cluster centers and weights.

Usage

DSC_Static(x, type=c("auto", "micro", "macro"))

Arguments

x
The clustering (a DSD object) to copy.
type
which clustering to copy.

Value

  • An onject of class DSC_Static (sub class of DSC, DSC_R). The list also contains either DSC_Micro or DSC_Macro depending on what type of clustering was copied.

See Also

DSC, DSC_Micro, DSC_Macro

Examples

Run this code
# 3 clusters with 5% noise
dsd <- DSD_GaussianStatic(k=3, noise=0.05)

tnn <- DSC_tNN(r=0.05, lambda=.01, macro=FALSE)
cluster(tnn, dsd, 500)
tnn

# create a static copy of the clustering
static <- DSC_Static(tnn)
static

plot(static, dsd)

Run the code above in your browser using DataLab