Skip to contents

A data stream generator that generates a data stream in the shape of a target. It has a single Gaussian cluster in the center and a ring that surrounds it.

Usage

DSD_Target(
  center_sd = 0.05,
  center_weight = 0.5,
  ring_r = 0.2,
  ring_sd = 0.02,
  noise = 0
)

Arguments

center_sd

standard deviation of center

center_weight

proportion of points in center

ring_r

average ring radius

ring_sd

standard deviation of ring radius

noise

proportion of noise

Value

Returns a DSD_Target object.

Details

This DSD will produce a singular Gaussian cluster in the center with a ring around it.

Author

Michael Hahsler

Examples

# create data stream with three clusters in 2D
stream <- DSD_Target()

get_points(stream, n = 5)
#>             x            y .class
#> 1  0.05487620 -0.190051454      2
#> 2 -0.06894499  0.040386614      1
#> 3  0.01645994 -0.004841601      1
#> 4  0.03712781 -0.031350098      1
#> 5 -0.09328229 -0.145938980      2

plot(stream)