function DbpaEvi = EviDistance_MulEvi( E , Dnum )
% 求解多个证据之间的距离
% E为证据
% Dnum为辨识框架中元素的个数
% 例子
% 例子测试正确
% E(1).set = [0,0,1;0,1,0;1,0,0];
% E(1).m =[0.5,0.2,0.3];
% E(2).set = [0,0,1;0,1,0;1,0,0];
% E(2).m =[0,0.9,0.1];
% E(3).set = [0,0,1;0,1,0;1,0,0];
% E(3).m =[0.55,0.1,0.35];
% E(4).set = [0,0,1;0,1,0;1,0,0];
% E(4).m =[0.55,0.1,0.35];
% E(5).set = [0,0,1;0,1,0;1,0,0];
% E(5).m =[0.55,0.1,0.35];
% %-----------
% Input_E(1).set = ['001';'010';'100'];
% Input_E(1).m =[0.5,0.2,0.3];;
% Input_E(2).set = ['001';'010';'100'];
% Input_E(2).m =[0,0.9,0.1];
% Input_E(3).set = ['001';'010';'100'];
% Input_E(3).m =[0.55,0.1,0.35];
% Input_E(4).set = ['001';'010';'100'];
% Input_E(4).m =[0.55,0.1,0.35];
% Input_E(5).set = ['001';'010';'100'];
% Input_E(5).m =[0.55,0.1,0.35];
% Dnum = 3;
% 例子
% Dnum = 3;
% Input_E(1).set = ['011';'100'];
% Input_E(1).m =[0.8,0.2];
% Input_E(2).set = ['011';'100'];
% Input_E(2).m =[0.7,0.3];
% 例子
% Input_E(1).set = ['00001';'00010';'00100';'01000';'10000'];
% Input_E(1).m =[0.2,0.2,0.2,0.2,0.2];
% Input_E(2).set = ['00001';'00010';'00100';'01000';'10000'];
% Input_E(2).m =[0.2,0.2,0.2,0.2,0.2];
% Dnum = 5;
% 例子
% Input_E(1).set = ['001';'010';'100'];
% Input_E(1).m =[0.98,0.01,0.01];
% Input_E(2).set = ['001';'010';'100'];
% Input_E(2).m =[0.0,0.01,0.99];
% Dnum = 3;
% 例子
% Input_E(1).set = ['011';'010';'100'];
% Input_E(1).m =[0.8,0.1,0.1];
% Input_E(2).set = ['001';'010';'100'];
% Input_E(2).m =[0.1,0.1,0.8];
% Dnum = 3;
% 例子
% Input_E(1).set = ['001';'010';'100'];
% Input_E(1).m =[0.5,0.2,0.3];
% Input_E(2).set = ['001';'010';'100'];
% Input_E(2).m =[0.1,0.8,0.1];
% Input_E(3).set = ['001000000';'111000000'];
% Input_E(3).m =[0.8,0.2];
% Input_E(4).set = ['000100000'];
% Input_E(4).m =[1];
% Dnum =3;
% 例子
% Dnum = 4;
% Input_E(1).set = ['0001';'0011';'1101'];
% Input_E(1).m =[0.1,0.6,0.3];
% Input_E(2).set = ['0011';'0001';'1111'];
% Input_E(2).m = [0.4,0.2,0.4];
%--------------------------------------
% Input_E(1).set = ['001';'010';'100'];
% Input_E(1).m = [0.51,0.16,0.33];
% Input_E(2).set = ['001';'010';'100'];
% Input_E(2).m = [0,0.9,0.1];
% Input_E(3).set = ['011';'101'];
% Input_E(3).m = [0.6,0.4];
% Input_E(4).set = ['011';'111'];
% Input_E(4).m = [0.4,0.6];
% Dnum = 3;
%----------
% Input_E(1).set = ['001';'010';'100'];
% Input_E(1).m = [0.5,0.2,0.3];
% Input_E(2).set = ['001';'010';'100'];
% Input_E(2).m = [0,0.9,0.1];
% Input_E(3).set =['001';'010';'100'];
% Input_E(3).m = [0.55,0.1,0.35];
% Input_E(4).set = ['001';'010';'100'];
% Input_E(4).m = [0.45,0.2,0.35];
% Input_E(5).set =['001';'010';'100'];
% Input_E(5).m = [0.1,0.2,0.7];
% Input_E(6).set = ['001';'010';'100'];
% Input_E(6).m = [0.7,0.2,0.1];
% Input_E(7).set = ['001';'010';'100'];
% Input_E(7).m = [0.6,0.2,0.2];
% Input_E(8).set = ['001';'010';'100'];
% Input_E(8).m = [0.2,0.5,0.3];
% Input_E(9).set = ['001';'010';'100'];
% Input_E(9).m = [0.5, 0.4, 0.1]
% Input_E(10).set = ['001';'010';'100'];
% Input_E(10).m = [0.9, 0.05, 0.05]
% Dnum = 3;
% Input_E(1).set = ['001';'010';'100';'111'];
% Input_E(1).m =[0.5,0.2,0.3,0];
% Input_E(2).set = ['001';'010';'100';'111'];
% Input_E(2).m =[0,0.1,0.9,0];
% Input_E(3).set = ['001';'010';'100';'111'];
% Input_E(3).m =[0.6,0.2,0.2,0];
% Input_E(4).set = ['001';'010';'100';'111'];
% Input_E(4).m =[0.55,0.25,0.2,0];
% Input_E(5).set = ['001';'010';'100';'111'];
% % Input_E(5).m =[0.6,0.25,0.15,0];
%
Input_E(1).set =['00000011'];
Input_E(1).m=[1];
Input_E(2).set =['00000111'];
Input_E(2).m=[1];
Input_E(3).set =['00001111'];
Input_E(3).m=[1];
Input_E(4).set =['00011111'];
Input_E(4).m=[1];
Input_E(5).set =['00100000'];
Input_E(5).m=[1];
Input_E(6).set =['01100000'];
Input_E(6).m=[1];
Dnum = 8;
% %--------------------------------------------------------------------
[ E , Dnum ] = InitializeIntput( Input_E , Dnum)
[ mass0 , xt] = InitializeOutput( Dnum ) ;
mass1 = mass0;
% % 获取mass0
%-----------------------------
% 求取多个证据体两两之间的距离
[ RE,CE ] = size( E ); %CE为证据的个数
for i = 1:CE
for j = 1:CE
DbpaEvi(i,j) = EviDistance_TwoEvi(E(i),E(j),Dnum);
end
end
a=1;