Interface for data stream clustering algorithms implemented in the MOA (Massive Online Analysis) framework. This is an extension package for stream.
install_git("mhahsler/streamMOA")
(needs devtools)R> library("streamMOA")
# 3 clusters with 5% noise
R> stream <- DSD_Gaussians(k=3, d=2, noise=.05)
# cluster with CluStream
R> clustream <- DSC_CluStream(m=50, k=3)
R> update(clustream, stream, 500)
R> clustream
CluStream + k-Means (weighted)
Class: DSC_TwoStage, DSC_Macro, DSC
Number of micro-clusters: 50
Number of macro-clusters: 3
# plot micro-clusters
R> plot(clustream, stream, type = "both")