% Chad Myers
% ELE 571
% File: test_xorbp.m
% ------------------------
% This script calls the xortrain and xortest functions to train and test a
% neural network for xor-type classification.  The various training
% parameters can be adjusted as desired.

%EBF
fprintf('EBF:\n');
[W,means,sigma] = xortrain(4,80,60,0);   % xortrain(num. of clusters, num. of training pts.,num. of training iterations,1 for RBF/0 for EBF)
xortest(W,means,sigma,0);  % xortest(weight matrix, distribution means,distribution variances,1 for RBF/0 for EBF)

%RBF
fprintf('RBF:\n');
[W,means,sigma] = xortrain(4,70,50,1);
xortest(W,means,sigma,1);