stream (version 1.2-3)

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
stream <- DSD_Gaussians(k=3)
dstream <- DSC_DStream(gridsize=0.1)
update(dstream, stream, 500)

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

Run the code above in your browser using DataCamp Workspace