% Recall using Lukasiewicz IFAM...

clear;
load faces;

W = minI_M(X,X'); theta=min(X,[],2);

% Para efeitos computacionais!
Theta=[]; 
for i=1:size(Xin,2)
	Theta=[Theta,theta];
end
	
yIFAM_M=max(maxC_M(W,Xin),Theta);
disp('Lukasiewicz IFAM test - concluded');

figure(3); clf;
for i=1:size(yIFAM_M,2)
	subplot(4,6,i); imshow(reshape(yIFAM_M(:,i),s1,s2));
	disp(sprintf('%.4f',norm(yIFAM_M(:,i)-X(:,1))/norm(X(:,1))));
end
print -deps facesIFAM_M.eps
