DSD {stream} | R Documentation |
Data Stream Data Generator Base Classes
Description
Abstract base classes for DSD (Data Stream Data Generator).
Usage
DSD(...)
DSD_R(...)
Arguments
... |
further arguments. |
Details
The DSD
class cannot be instantiated, but it serves as a abstract
base class from which all DSD objects inherit. Implementations can be found in the
See Also section below.
DSD
provides common functionality like:
-
print()
-
reset_stream()
(if available) -
close_stream()
(if needed)
DSD_R
inherits form DSD
and is the abstract parent class for
DSD implemented in R. To create a new R-based implementation there are only
two function that needs to be implemented for a new DSD
subclass
called Foo
would be:
A creator function
DSD_Foo(...)
anda method
get_points.DSD_Foo(x, n = 1L)
for that class.
For details see vignette()
Author(s)
Michael Hahsler
See Also
Other DSD:
DSD_BarsAndGaussians()
,
DSD_Benchmark()
,
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
DSD()
# create data stream with three clusters in 3-dimensional space
stream <- DSD_Gaussians(k = 3, d = 3)
# get points from stream
get_points(stream, n = 5)
# plotting the data (scatter plot matrix, first and third dimension, and first
# two principal components)
plot(stream)
plot(stream, dim = c(1, 3))
plot(stream, method = "pca")