Data Stream Generator for Dynamic Data Stream Benchmarks
Source:R/DSD_Benchmarks.R
DSD_Benchmark.RdA data stream generator that generates several dynamic streams indented to be benchmarks to compare data stream clustering algorithms. The benchmarks can be used to test if a clustering algorithm can follow moving clusters, and merging and separating clusters.
Value
Returns a DSD object.
Details
Currently available benchmarks are:
1: two tight clusters moving across the data space with noise and intersect in the middle.2: two clusters are located in two corners of the data space. A third cluster moves between the two clusters forth and back.
The benchmarks are created using DSD_MG.
See also
Other DSD:
DSD(),
DSD_BarsAndGaussians(),
DSD_Cubes(),
DSD_Gaussians(),
DSD_MG(),
DSD_Memory(),
DSD_Mixture(),
DSD_NULL(),
DSD_ReadDB(),
DSD_ReadStream(),
DSD_Target(),
DSD_UniformNoise(),
DSD_mlbenchData(),
DSD_mlbenchGenerator(),
DSF(),
animate_data(),
close_stream(),
get_points(),
plot.DSD(),
reset_stream()
Examples
stream <- DSD_Benchmark(i = 1)
get_points(stream, n = 5)
#> X1 X2 .class
#> 1 0.1127555 0.1000563 2
#> 2 0.1179650 0.1111449 2
#> 3 0.1155370 0.9058588 1
#> 4 0.1090585 0.1057890 2
#> 5 0.1105024 0.8997594 1
if (FALSE) { # \dontrun{
stream <- DSD_Benchmark(i = 1)
animate_data(stream, n = 10000, horizon = 100, xlim = c(0, 1), ylim = c(0, 1))
stream <- DSD_Benchmark(i = 2)
animate_data(stream, n = 10000, horizon = 100, xlim = c(0, 1), ylim = c(0, 1))
} # }