powered by
Generate a random dataset shaped like two moons.
data.twomoons( r = 1, n = 200, sigma = 0.1, levels = NULL, graph = TRUE, seed = NULL )
A randomly generated dataset.
Radius of each class.
Number of observations in each class.
Variance in each class.
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.parabol, data.target1, data.target2, data.xor
data.diag
data.parabol
data.target1
data.target2
data.xor
data.twomoons ()
Run the code above in your browser using DataLab