Description Usage Arguments Value Examples
Generating Yinyang data
Generating Yinyang data
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
)
|
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 |
A list of generated data points and the true labels
data - The generated data matrix
clus - The vector of true cluster labels for each data point
A list of generated data points and the true labels
data - The generated data matrix
clus - The vector of true cluster labels for each data point
1 2 3 4 | X = Yinyang_data()$data
plot(X[,1], X[,2])
X = Yinyang_data()$data
plot(X[,1], X[,2])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.