bananas {evclust} | R Documentation |
Generation of "bananas" datasets
Description
bananas
generates a dataset with two classes separated by a nonlinear boundary.
Usage
bananas(n, r = 5, s = 1)
Arguments
n |
Number of observations. |
r |
Radius of the two half circles (default: 5). |
s |
Standard deviation of noise (default 1). |
Details
This function generates a dataset with two complex-shaped classes, useful to test some nonlinear or constrained clustering algorithms.
Value
A list with two attributes:
- x
The (n,2) matrix of attributes.
- y
The vector of class labels.
Author(s)
Feng Li.
References
F. Li, S. Li and T. Denoeux. k-CEVCLUS: Constrained evidential clustering of large dissimilarity data. Knowledge-Based Systems (142):29-44, 2018.
See Also
Examples
data<-bananas(1000)
plot(data$x,pch=data$y,col=data$y)
[Package evclust version 2.0.3 Index]