The created data are d
-dimensional spherical Gaussians with standard
deviation sd
and means at the corners of a
d
-dimensional simplex. The number of classes is d+1
.
mlbench.simplex(n = 800, d = 3, sides = 1, sd = 0.1, center=TRUE)
simplex(d, sides, center=TRUE)
Returns an object of class "mlbench.simplex"
with components
input values
factor of length n
with target classes
number of patterns to create
dimensionality of simplex, default is 3
lengths of the sides of the simplex, default is to create a unit simplex
standard deviation
If TRUE
, the origin is the center of gravity of
the simplex. If FALSE
, the origin is a corner of the
simplex and all coordinates of the simplex are positive.
Manuel Eugster and Sebastian Kaiser
p <- mlbench.simplex()
plot(p)
library("lattice")
cloud(x.3~x.1+x.2, groups=classes, data=as.data.frame(p))
Run the code above in your browser using DataLab