powered by
Generate "XOR" dataset.
data.xor( n = 100, ndim = 2, sigma = 0.25, levels = NULL, graph = TRUE, seed = NULL )
A randomly generated dataset.
Number of observations in each cluster.
The number of dimensions (2^ndim clusters are formed, grouped into two classes).
The variance.
Name of each class.
A logical indicating whether or not a graphic should be plotted.
A specified seed for random number generation.
data.diag, data.gauss, data.parabol, data.target2, data.twomoons
data.diag
data.gauss
data.parabol
data.target2
data.twomoons
data.xor ()
Run the code above in your browser using DataLab