View source: R/data_generators.R
| gen_moons | R Documentation |
Generate Two-Moons Data
gen_moons(n, noise = 0.2)
n |
Number of observations. |
noise |
Standard deviation of Gaussian noise. |
A list with numeric matrix x and factor y.
dat <- gen_moons(20, noise = 0.1)
str(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.