powered by
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.
cl
r
mlbench.2dnormals(n, cl=2, r=sqrt(cl), sd=1)
number of patterns to create
number of classes
radius at which the centers of the classes are located
standard deviation of the Gaussians
Returns an object of class "bayes.2dnormals" with components
"bayes.2dnormals"
input values
factor vector of length n with target classes
n
# NOT RUN { # 2 classes p <- mlbench.2dnormals(500,2) plot(p) # 6 classes p <- mlbench.2dnormals(500,6) plot(p) # }
Run the code above in your browser using DataLab