stream (version 1.2-3)

get_centers: Get Cluster Centers from a DSC

Description

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

Usage

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.

See Also

DSC

Examples

Run this code
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")

Run the code above in your browser using DataLab