The inputs of the XOR problem are uniformly distributed on
the d-dimensional cube with corners ${\pm 1}$. Each pair of
opposite corners form one class, hence the total number of classes is
$2^(d-1)$
Usage
mlbench.xor(n, d=2)
Arguments
n
number of patterns to create
d
dimension of the XOR problem
Value
Returns an object of class "mlbench.xor" with components
xinput values
classesfactor vector of length n with target classes