if (interactive()) {
stream <- DSD_Benchmark(1)
### animate the clustering process with evaluation
### Note: we choose to exclude noise points from the evaluation
### measure calculation, even if the algorithm would assign
### them to a cluster.
dbstream <- DSC_DBSTREAM(r = .04, lambda = .1, gaptime = 100, Cm = 3,
shared_density = TRUE, alpha = .2)
animate_cluster(dbstream, stream, horizon = 100, n = 5000,
measure = "crand", type = "macro", assign = "micro",
plot.args = list(xlim = c(0, 1), ylim = c(0, 1), shared = TRUE))
}
Run the code above in your browser using DataLab