Skip to main content
. 2021 Jan 1;21(1):241. doi: 10.3390/s21010241
Algorithms A1 Calculating objective weights by the entropy weight method
Input:
For totally N samples and M corresponding features,
the j-th feature value of the i-th sample xij(i=1,2,,N;j=1,2,M);
Process:
 1. Xij=xijmin{x1j,,xnj}max{x1j,xnj}min{x1j,,xnj}  % Normalization of positive influence feature
 2. Xij=max{x1j,,xnj}xijmax{x1j,xnj}min{x1j,,xnj}  % Normalization of negative influence feature
 3. k=1ln(n)>0, ej=ki=1npijln(pij),j=1,2,,m
% Entropy value of the j-th feature
 4. dj=1ej,j=1,2,,m % Information entropy redundancy of the j-th feature
end
Output: Subjective weight of the j-th feature