Learn R Programming

stream (version 0.1-1)

nclusters: nclusters

Description

Returns the number of micro-clusters from the DSC object.

Usage

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

Arguments

x
A DSC object.
type
Return the number of micro- or macro-clusters in DSC. Auto used the class of dsc to decide.
...
Additional arguments are passed on.

Value

  • An integer; the number of micro- or macro-clusters in the clustering.

See Also

DSC

Examples

Run this code
# setting up the objects
dsd <- DSD_GaussianStatic()
dsc <- DSC_DenStream(initPoints=100)
cluster(dsc, dsd, 500)

# retrieving the results
get_centers(dsc)
nclusters(dsc)

Run the code above in your browser using DataLab