ring_data: Generating Ring data

Description Usage Arguments Value Examples

View source: R/simulations.R

Description

Generating Ring data

Generating Ring data

Usage

1
2
3
ring_data(n_c = 200, n_r = 1000, sd_c = 0.1, sd_r = 0.1, d = 2, sd_high = 0.1)

ring_data(n_c = 200, n_r = 1000, sd_c = 0.1, sd_r = 0.1, d = 2, sd_high = 0.1)

Arguments

n_c

a number indicating the number of points in the middle circle

n_r

a number indicating the number of points in the outer ring

sd_c

a number indicating the standard deviation of shifts for points on the middle circle

sd_r

a number indicating the standard deviation of shifts for points on 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 = ring_data()$data
plot(X[,1], X[,2])
X = ring_data()$data
plot(X[,1], X[,2])

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