data.gen.circles function

Circles

Circles

data.gen.circles( n, r_vec = c(1, 2), start = runif(1, -1, 1), s, do.plot = TRUE )

Arguments

  • n: The data length to be generated.
  • r_vec: The radius of circles.
  • start: The center of circles.
  • s: The level of Gaussian noise, default 0.
  • do.plot: Logical value. If TRUE (default value), a plot of the generated Circles is shown.

Returns

A list of two variables, x and classes.

Examples

Circles=data.gen.circles(n = 1000, r_vec=c(1,2), start=runif(1,-1,1), s=0.1, do.plot=TRUE)