Learn R Programming

stream (version 0.1-1)

DSD_GaussianMoving: Moving Gaussians Data Stream Generator

Description

A data stream generator that produces a data stream with moving Gaussians . It has two clusters and a third that moves between them.

Usage

DSD_GaussianMoving(t=10, n=20)

Arguments

t
The number of turns or steps taken for the moving cluster to move from the bottom left hand corner to the top right hand corner.
n
The number of points used for each cluster during step or turn.

Value

  • An object of class DSD_GaussianMoving (subclass of DSD_Wrapper, DSD_R, DSD).

Details

DSD_GaussianMoving is a DSD generator with 3 clusters in 2 dimensional space. Two of the clusters are static and are located at opposite corners. The third cluster traverses the two. The number of steps it takes for the third cluster to complete its journey is determined by t.

See Also

DSD

Examples

Run this code
# create data stream with three clusters in 2D
dsd <- DSD_GaussianMoving()

# show an animation of the data
animate_data(dsd, 600,  xlim=c(-.2,1.2), ylim=c(-.2,1.2), 
    pointInterval=10)

Run the code above in your browser using DataLab