xor.bench(snns)R Documentation

Continuous XOR Benchmark Problem

Usage

xor.bench(n, d=2)

Arguments

n number of patterns to create
d dimension

Value

Returns an object of class @nn.pattern containing a training set for the continous XOR benchmark problem.

Examples

# 2d example
p<-xor.bench(300,2)
plot(p$input,col=p$target.labels)
#
# 3d example
p<-xor.bench(300,3)
pairs(p$input,col=p$target.labels)


[Package Contents]