\HeaderA{mlbench.2dnormals}{2-dimensional Gaussian Problem}{mlbench.2dnormals}
\keyword{datagen}{mlbench.2dnormals}
\begin{Description}\relax
Each of the \code{cl} classes consists of a 2-dimensional
Gaussian. The centers are equally spaced on a circle around the
origin with radius \code{r}.
\end{Description}
\begin{Usage}
\begin{verbatim}
mlbench.2dnormals(n, cl=2, r=sqrt(cl), sd=1)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{n}] number of patterns to create
\item[\code{cl}] number of classes
\item[\code{r}] radius at which the centers of the classes are located
\item[\code{sd}] standard deviation of the Gaussians
\end{ldescription}
\end{Arguments}
\begin{Value}
Returns an object of class \code{"bayes.2dnormals"} with components
\begin{ldescription}
\item[\code{x}] input values
\item[\code{classes}] factor vector of length \code{n} with target classes
\end{ldescription}
\end{Value}
\begin{Examples}
\begin{ExampleCode}
# 2 classes
p <- mlbench.2dnormals(500,2)
plot(p)
# 6 classes
p <- mlbench.2dnormals(500,6)
plot(p)
\end{ExampleCode}
\end{Examples}

