workspaces = {'Cocomo81','Cocomo81o','Cocomo81e','Nasa93','Nasa93c2','Nasa93c5','Desharnais','SDR','SDR-Banking','Albrecht','ISBSG-Banking'}; eval(['cd Workspaces\''maxDistance - completeLinkage''']); stddevPred = -1 * ones(7,11); meanPred = -1 * ones(7,11); for realDeal = 1:11 eval(['load ',char(workspaces(realDeal)),'.mat;']); % xlswrite([char(workspaces(realDeal)),'InstancesToGac2'],instanceSizeGac2); predsGac2 = []; for i = 1:size(mreGac2,1) predsGac2 = [predsGac2;(size(find(mreGac2(i,:)<=0.3),2)/size(mreGac2(i,:),2))]; end stddevPred(1,realDeal) = std(predsGac2); meanPred(1,realDeal) = median(predsGac2); preds1 = []; for i = 1:size(mre1,1) preds1 = [preds1;(size(find(mre1(i,:)<=0.3),2)/size(mre1(i,:),2))]; end stddevPred(2,realDeal) = std(preds1); meanPred(2,realDeal) = median(preds1); preds2 = []; for i = 1:size(mre2,1) preds2 = [preds2;(size(find(mre2(i,:)<=0.3),2)/size(mre2(i,:),2))]; end stddevPred(3,realDeal) = std(preds2); meanPred(3,realDeal) = median(preds2); preds4 = []; for i = 1:size(mre4,1) preds4 = [preds4;(size(find(mre4(i,:)<=0.3),2)/size(mre4(i,:),2))]; end stddevPred(4,realDeal) = std(preds4); meanPred(4,realDeal) = median(preds4); preds8 = []; for i = 1:size(mre8,1) preds8 = [preds8;(size(find(mre8(i,:)<=0.3),2)/size(mre8(i,:),2))]; end stddevPred(5,realDeal) = std(preds8); meanPred(5,realDeal) = median(preds8); preds16 = []; for i = 1:size(mre16,1) preds16 = [preds16;(size(find(mre16(i,:)<=0.3),2)/size(mre16(i,:),2))]; end stddevPred(6,realDeal) = std(preds16); meanPred(6,realDeal) = median(preds16); predsx = []; for i = 1:size(mrex,1) predsx = [predsx;(size(find(mrex(i,:)<=0.3),2)/size(mrex(i,:),2))]; end stddevPred(7,realDeal) = std(predsx); meanPred(7,realDeal) = median(predsx); end eval(['cd ..']); eval(['cd ..']);