mlbench.2dnormals

0th

Percentile

2-dimensional Gaussian Problem

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.

Keywords
datagen
Usage
mlbench.2dnormals(n, cl=2, r=sqrt(cl), sd=1)
Arguments
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
Value

  • Returns an object of class "bayes.2dnormals" with components
  • xinput values
  • classesfactor vector of length n with target classes

Aliases
  • mlbench.2dnormals
Examples
# 2 classes
p <- mlbench.2dnormals(500,2)
plot(p)
# 6 classes
p <- mlbench.2dnormals(500,6)
plot(p)
Documentation reproduced from package mlbench, version 0.5-1, License: Free for non-commercial purposes. See the file README and the help pages of the data sets for details.

Community examples

Looks like there are no examples yet.