0001
0002
0003 function [PltPolForTimeInter] = maxEntropyAlternative(ALL_Family_plRec, t_start, t_end, own_force_id, enemy_cmp_id, pltNo, alternativeNumber)
0004
0005
0006
0007 entropiVal = -inf;
0008 [noOfParticles, noOfstructs] = size(ALL_Family_plRec{1}{1,1});
0009 PltPolForTimeInter = [];
0010 for t = t_start:t_end
0011 curr_alt = [];
0012 for p = 1:noOfParticles
0013 if entropiVal < entropy(ALL_Family_plRec{t}{own_force_id, enemy_cmp_id}{p, pltNo+1}.PltPol)
0014 entropiVal = entropy(ALL_Family_plRec{t}{own_force_id, enemy_cmp_id}{p, pltNo+1}.PltPol)
0015 plot_candidate = ALL_Family_plRec{t}{own_force_id, enemy_cmp_id}{p, pltNo+1}.PltPol(alternativeNumber)
0016 end;
0017 end;
0018 entropiVal = -inf;
0019 PltPolForTimeInter = [PltPolForTimeInter; plot_candidate];
0020 end;
0021 T = [t_start:t_end]';
0022 plot(T, PltPolForTimeInter)