bananas | R Documentation |
bananas
generates a dataset with two classes separated by a nonlinear boundary.
bananas(n, r = 5, s = 1)
n |
Number of observations. |
r |
Radius of the two half circles (default: 5). |
s |
Standard deviation of noise (default 1). |
This function generates a dataset with two complex-shaped classes, useful to test some nonlinear or constrained clustering algorithms.
A list with two attributes:
The (n,2) matrix of attributes.
The vector of class labels.
Feng Li.
F. Li, S. Li and T. Denoeux. k-CEVCLUS: Constrained evidential clustering of large dissimilarity data. Knowledge-Based Systems (142):29-44, 2018.
kcevclus
data<-bananas(1000)
plot(data$x,pch=data$y,col=data$y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.