\HeaderA{mlbench.corners}{Corners of Hypercube}{mlbench.corners}
\keyword{datagen}{mlbench.corners}
\begin{Description}\relax
The created data are \code{d}-dimensional spherical Gaussians with standard
deviation \code{sd} and means at the corners of a
\code{d}-dimensional hypercube. The number of classes is \eqn{2^d}{}.
\end{Description}
\begin{Usage}
\begin{verbatim}
mlbench.corners(n=800, d=3, sides=rep(1,d), sd=0.1)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{n}] number of patterns to create
\item[\code{d}] dimensionality of hypercube, default is 3
\item[\code{sides}] lengths of the sides of the hypercube, default is to
create a unit hypercube
\item[\code{sd}] standard deviation
\end{ldescription}
\end{Arguments}
\begin{Value}
Returns an object of class \code{"mlbench.corners"}  with components
\begin{ldescription}
\item[\code{x}] input values
\item[\code{classes}] factor of length \code{n} with target classes
\end{ldescription}
\end{Value}
\begin{Examples}
\begin{ExampleCode}
p<-mlbench.corners()
plot(p)

library("scatterplot3d")
scatterplot3d(p$x, color=as.numeric(p$classes))
\end{ExampleCode}
\end{Examples}

