Description
Generate "XOR" dataset.
Usage
data.xor(
n = 100,
ndim = 2,
sigma = 0.25,
levels = NULL,
graph = TRUE,
seed = NULL
)
Arguments
n
Number of observations in each cluster.
ndim
The number of dimensions (2^ndim clusters are formed, grouped into two classes).
graph
A logical indicating whether or not a graphic should be plotted.
seed
A specified seed for random number generation.
Value
A randomly generated dataset.