DSC_TwoStage

0th

Percentile

TwoStage Clustering Process

Combines a micro and a macro clustering algorithm into a single process.

Usage
DSC_TwoStage(micro, macro)
Arguments
micro
Clustering algorithm for online stage (DSC_micro)
macro
Clustering algorithm for offline stage (DSC_macro)
Details

update() runs the micro-clustering stage and if centers/weights are requested the reclustering is automatically performed.

Value

An object of class DSC_TwoStage (subclass of DSC, DSC_Macro).

See Also

DSC, DSC_Macro

Aliases
  • DSC_TwoStage
Examples
stream <- DSD_Gaussians(k=3)

# Create a clustering process that uses a window for the online stage and
# k-means for the offline stage (reclustering)
win_km <- DSC_TwoStage(
  micro=DSC_Window(horizon=100), 
  macro=DSC_Kmeans(k=3)
  ) 
win_km
  
update(win_km, stream, 200) 
win_km
plot(win_km, stream, type="both")  
evaluate(win_km, stream, assign="macro")
Documentation reproduced from package stream, version 1.2-3, License: GPL-3

Community examples

Looks like there are no examples yet.