Get Cluster Centers from a DSC

Share:

Description

Gets the cluster centers (micro- or macro-clusters) from a DSC object.

Usage

1
	get_centers(x, type=c("auto", "micro", "macro"), ...)

Arguments

x

The DSC object the centers are being requested from.

type

get centers for micro- or macro-clusters. Auto used the class of dsc to decide.

...

Additional parameters.

Value

A data.frame with the micro- or macro-cluster centers as rows.

Author(s)

Michael Hahsler

See Also

DSC

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
stream <- DSD_Gaussians(k=3, d=2)
dstream <- DSC_DStream(gridsize=.1)
update(dstream, stream, 500)
dstream
  
# getting the micro-cluster centers
get_centers(dstream)

# D-Stream also has macro-clusters
get_centers(dstream, type="macro")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.