[] = ObjectiveDistribution(AllFunVals,objs,gens) ObjectiveDistribution: Displays the fitness distribution for given subsets of objectives and generations INPUT AllFunVals{maxgen} = FunVals(PopSize,n_objectives): Cell array that stores the evaluations of all the objectives for all the individuals in every generation objs: Selected objectives gens: Selected generations, for all generations gens = [1:maxgen]; Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)
0001 function[] = ObjectiveDistribution(AllFunVals,objs,gens) 0002 % [] = ObjectiveDistribution(AllFunVals,objs,gens) 0003 % ObjectiveDistribution: Displays the fitness distribution for given 0004 % subsets of objectives and generations 0005 % 0006 % INPUT 0007 % AllFunVals{maxgen} = FunVals(PopSize,n_objectives): Cell array that stores the evaluations of all the objectives 0008 % for all the individuals in every generation 0009 % objs: Selected objectives 0010 % gens: Selected generations, for all generations gens = [1:maxgen]; 0011 % 0012 % Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es) 0013 0014 k = size(AllFunVals,2); % Number of generations 0015 n_objectives = size(AllFunVals{1},2); % Number of objectives 0016 PopSize = size(AllFunVals{1},1); % Population size 0017 0018 for i=1:size(objs,2), 0019 for j=1:size(gens,2) 0020 figure 0021 hist(AllFunVals{i,j}); 0022 end 0023 end