mlbench (version 1.1-3)

mlbench.corners: Corners of Hypercube

Description

The created data are d-dimensional spherical Gaussians with standard deviation sd and means at the corners of a d-dimensional hypercube. The number of classes is $2^d$.

Usage

mlbench.corners(n=800, d=3, sides=rep(1,d), sd=0.1)

Arguments

n
number of patterns to create
d
dimensionality of hypercube, default is 3
sides
lengths of the sides of the hypercube, default is to create a unit hypercube
sd
standard deviation

Value

  • Returns an object of class "mlbench.corners" with components
  • xinput values
  • classesfactor of length n with target classes

Examples

Run this code
p<-mlbench.corners()
plot(p)

library("scatterplot3d")
scatterplot3d(p$x, color=as.numeric(p$classes))

Run the code above in your browser using DataCamp Workspace