View source: R/mlbench-class.R
mlbench.2dnormals | R Documentation |
Each of the cl
classes consists of a 2-dimensional
Gaussian. The centers are equally spaced on a circle around the
origin with radius r
.
mlbench.2dnormals(n, cl=2, r=sqrt(cl), sd=1)
n |
number of patterns to create |
cl |
number of classes |
r |
radius at which the centers of the classes are located |
sd |
standard deviation of the Gaussians |
Returns an object of class "bayes.2dnormals"
with components
x |
input values |
classes |
factor vector of length |
# 2 classes
p <- mlbench.2dnormals(500,2)
plot(p)
# 6 classes
p <- mlbench.2dnormals(500,6)
plot(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.