//层次分析法(两层)——确定指标权重
public double[] AHP(double[] expertscoreTab0)//expertscoreTab0是专家打分表
{
double[] expertscoreTab = expertscoreTab0;
//计算判断矩阵judgeArray
double[,] judgeArray = new double[expertscoreTab.Length, expertscoreTab.Length];
for (int i = 0; i < expertscoreTab.Length; i++)
{
for (int j = 0; j <expertscoreTab.Length; j++)
{
if (expertscoreTab[i]!=0)
{
judgeArray[i, j] = expertscoreTab[j] / expertscoreTab[i];
C#层次分析法(AHP)
于 2022-03-20 01:42:01 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)