熵值法如何确定权重

2025-01-01 00:56:34
推荐回答(1个)
回答1:

clc,clear x=[13.5 14.5 8.5 17.6 18.5;30.2 18.4 20.8 10.5 19.6;78 55 37 50 45;89 85 52 68 79]; x=zscore(x); y=x./repmat(sum(x,2),1,5); %商值e e3=-sum(y3.*log(y3),2)./log(5); d=1-e3; %权值 w=d/sum(d)