Yinyang_data: Generating Yinyang data

Description Usage Arguments Value Examples

View source: R/simulations.R

Description

Generating Yinyang data

Generating Yinyang data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
Yinyang_data(
  n_m = 400,
  n_c = 200,
  n_r = 2000,
  sd_c = 0.1,
  sd_r = 0.1,
  d = 2,
  sd_high = 0.1
)

Yinyang_data(
  n_m = 400,
  n_c = 200,
  n_r = 2000,
  sd_c = 0.1,
  sd_r = 0.1,
  d = 2,
  sd_high = 0.1
)

Arguments

n_m

number of points in each of the two moon shapes. Positive integer value or vector with length=2

n_c

number of points in each of the two small circles

n_r

number of points in the outer ring

sd_c

the standard deviation of shifts for points in the two small circles

sd_r

the standard deviation of shifts for points in the outer ring

d

a number indicating the dimension of the generated data. d>2 dimensions are filled with independent Gaussian noises

sd_high

a number indicating the standard deviation for Gaussian noises in the higher dimensions

Value

A list of generated data points and the true labels

A list of generated data points and the true labels

Examples

1
2
3
4
X = Yinyang_data()$data
plot(X[,1], X[,2])
X = Yinyang_data()$data
plot(X[,1], X[,2])

JerryBubble/skeletonClus documentation built on Dec. 18, 2021, 1:28 a.m.