Learn R Programming

stream (version 0.1-1)

DSC_Hierarchical: Hierarchical Micro-Cluster Reclusterer

Description

Implementation of hierarchical clustering to recluster a set of micro-clusters.

Usage

DSC_Hierarchical(k=NULL, h=NULL, method = "complete")

Arguments

k
The number of desired clusters.
h
Height where to cut the dentrogram.
method
the agglomeration method to be used. This should be (an unambiguous abbreviation of) one of "ward", "single", "complete", "average", "mcquitty", "median" or "centroid".

Value

  • A list of class DSC, DSC_R, DSC_Macro, and DSC_Hierarchical. The list contains the following items:
  • descriptionThe name of the algorithm in the DSC object.
  • RObjThe underlying R object.

Details

Please refer to package Hierarchical for more details on the behavior of the algorithm.

See Also

DSC, DSC_Macro

Examples

Run this code
# Cassini dataset
dsd <- DSD_mlbenchGenerator("cassini")

hierarchical <- DSC_Hierarchical(k=3, method="single")
cluster(hierarchical, dsd, 500)
plot(hierarchical, dsd)

# Hierarchical can also recluster micro-clusters
dsc <- DSC_DenStream()
cluster(dsc, dsd, 500)

# reclustering by specifying k
hierarchical <- DSC_Hierarchical(k=3, method="single")
recluster(hierarchical, dsc)
plot(hierarchical, dsd)

# reclustering by specifying height
hierarchical <- DSC_Hierarchical(h=.01, method="single")
recluster(hierarchical, dsc)
plot(hierarchical, dsd)

Run the code above in your browser using DataLab