powered by
Generate Two-Moons Data
gen_moons(n, noise = 0.2)
A list with numeric matrix x and factor y.
x
y
Number of observations.
Standard deviation of Gaussian noise.
dat <- gen_moons(20, noise = 0.1) str(dat)
Run the code above in your browser using DataLab