Learn R Programming

stream (version 0.1-1)

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
# setting up the objects
dsd <- DSD_GaussianStatic(k=3)
dsc <- DSC_Kmeans(k=3)
cluster(dsc, dsd, 500)

# getting the centers (these are macro-clusters since 
# Kmeans is a macro-cluster)
get_centers(dsc)

Run the code above in your browser using DataLab