data.gen.circles: Circles

Description Usage Arguments Value Examples

View source: R/data_gen_Class.R

Description

Circles

Usage

1
2
3
4
5
6
7
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.

Value

A list of two variables, x and classes.

Examples

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

synthesis documentation built on May 3, 2021, 9:07 a.m.