Home > src > BN_pol_rec > visualization > maxEntropyAlternative.m

maxEntropyAlternative

PURPOSE ^

plots errorbar of plan

SYNOPSIS ^

function [PltPolForTimeInter] = maxEntropyAlternative(ALL_Family_plRec, t_start, t_end, own_force_id, enemy_cmp_id, pltNo, alternativeNumber)

DESCRIPTION ^

 plots errorbar of plan 
Indata

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 
0003 function [PltPolForTimeInter] = maxEntropyAlternative(ALL_Family_plRec, t_start, t_end, own_force_id, enemy_cmp_id, pltNo, alternativeNumber)
0004 % plots errorbar of plan
0005 %Indata
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)

Generated on Wed 16-Mar-2005 09:17:47 by m2html © 2003