radius = 10; width = 4; theta = 25; distance = -4;
N = 400; train2total = 0.75; drawPatterns = true;
[train, test] = doubleMoonStructure( radius, width, theta, distance, ...
N, train2total, drawPatterns );
eta = 1;
w0 = [ 0, 0, 0 ];
weights = trainPerceptron(train, eta, w0, true);
[class1, class2, accuracy] = testPerceptron(test, weights);