資源簡介
證據理論代碼實現DS證據證據的融合 C++代碼
代碼片段和文件信息
#include?
#include?
using?namespace?std;
const?int?row=2;?//證據個數
const?int?size=6;?//識別框架大小
void?main()
{
float?A[row][size];??//存儲各個證據的基本可信數
float?B[size];?//融合結果
float?AB[size][size];???//存儲組合數據
/************************************************************************/
/*?輸入證據基本可信數???????????????????????????????????????????????????*/
/************************************************************************/
for?(int?i=0;?i
{
cout<<“輸入第“< for?(int?j=0;?j {
cin>>A[i][j];
}
}
/************************************************************************/
/*?計算組合數據?????????????????????????????????????????????????????????*/
/*******************************************************************
評論
共有 條評論