Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


stream (version 1.5-1)

DSD: Data Stream Data Generator Base Classes

Description

Abstract base classes for DSD (Data Stream Data Generator).

Usage

DSD(...)

Arguments

...

further arguments.

Author

Michael Hahsler

Details

The DSD class cannot be instantiated, but it serves as a abstract base class from which all DSD objects inherit.

DSD provides common functionality like:

  • get_points

  • print

  • plot

  • reset_stream (if available)

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:

  1. A creator function DSD_Foo() and

  2. a method get_points.DSD_Foo() for that class.

See Also

animate, update, evaluate, get_points, plot write_stream.DSD, reset_stream

Examples

Run this code

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)

# get points with true cluster assignment
p <- get_points(stream, n=5, cluster=TRUE)
attr(p, "cluster")

# 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="pc")

Run the code above in your browser using DataLab