Home > src > BN_pol_rec > Hsand > initDBNMx.m

initDBNMx

PURPOSE ^

0428-RS-Initilize DBN, Soft Evidence and oldData cell arrays

SYNOPSIS ^

function [DBN_Mx, soft_ev_Mx, oldData_Mx] = initDBNMx(own_force_ids, enemy_ids)

DESCRIPTION ^

0428-RS-Initilize DBN, Soft Evidence and oldData cell arrays

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 
0003 function [DBN_Mx, soft_ev_Mx, oldData_Mx] = initDBNMx(own_force_ids, enemy_ids)
0004 %0428-RS-Initilize DBN, Soft Evidence and oldData cell arrays
0005 global oldData_Mx; 
0006 DBN_Mx = cell(length(own_force_ids), length(enemy_ids));
0007 soft_ev_Mx = cell(length(own_force_ids), length(enemy_ids));
0008 oldData_Mx = cell(length(own_force_ids), length(enemy_ids));
0009 oldDataStrct = struct('oldCost11', 0,'oldSimulationTime11', 0, 'oldCost12', 0, 'oldSimulationTime12', 0, 'oldCost13', 0, 'oldSimulationTime13', 0, 'pos_old', ones(9,2));
0010 [DBN_Mx_Cell, soft_ev_cell] = makeNewDBN_Cell;
0011 for own_force = 1:length(own_force_ids)
0012     for enemy_force = 1:length(enemy_ids)
0013            DBN_Mx{own_force, enemy_force} = DBN_Mx_Cell;
0014            soft_ev_Mx{own_force, enemy_force} = soft_ev_cell;
0015            oldData_Mx{own_force, enemy_force} = oldDataStrct;
0016     end;
0017 end;
0018            
0019

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