powered by
bananas generates a dataset with two classes separated by a nonlinear boundary.
bananas
bananas(n, r = 5, s = 1)
A list with two attributes:
The (n,2) matrix of attributes.
The vector of class labels.
Number of observations.
Radius of the two half circles (default: 5).
Standard deviation of noise (default 1).
Feng Li.
This function generates a dataset with two complex-shaped classes, useful to test some nonlinear or constrained clustering algorithms.
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)
Run the code above in your browser using DataLab