% euklidinio ir Fiðerio klasifikatoriø palyginimas
V = nngenc([1 1; -2 -2],1,50,1.3); clf; plot(V(1,:),V(2,:)/2,'r+','linewidth',2); hold on; 
U = nngenc([-1 -1; 2 2],1,50,1.3); plot(U(1,:),U(2,:)/2,'go','linewidth',2);
 plot(1,-1,'k*','linewidth',4); 
 plot(-1,1,'k*','linewidth',4); 
 plot([1,-1],[-1,1],'k','linewidth',2);
 axis equal
 plot([-2,2],[-2,2],'k','linewidth',2);
 text(2,1.7,'E','fontweight','bold');
 plot([-2,2],[-1,1],'k','linewidth',2);
 text(2,0.7,'F','fontweight','bold');
 set(gcf,'PaperPosition',[0 0.5 5 4]);
 print -djpeg klasef  

% euklidinio, Fiðerio ir MinimalEmpiricalError klasifikatoriø palyginimas
V = nngenc([0 0; 0.5 0.5],1,50,1.5); clf; plot(V(1,:),V(2,:),'r+','linewidth',2); hold on; 
U = nngenc([0 0; -0.5 -0.5],1,50,1.5); plot(U(1,:),U(2,:),'go','linewidth',2);
 plot([-3,3],[-0.5,0.5],'k','linewidth',2);
 text(3,0.2,'MEE','fontweight','bold');
 axis equal
 plot([-2,2],[-2,2],'k','linewidth',2);
 text(2,1.7,'E','fontweight','bold');
 plot([-2,2],[-1,1],'k','linewidth',2);
 text(2,0.7,'F','fontweight','bold');
 set(gcf,'PaperPosition',[0 0.5 5 4]);
 t=0:0.01:2*pi; 
 plot(2*cos(t),sin(t)+0.5,'r','linewidth',2);
 plot(2*cos(t),sin(t)-0.5,'g','linewidth',2);
 print -djpeg klasefm
