normalimpact = horzcat(NormalPowerN1f, NormalICTN1f, NormalPowerN2f, NormalICTN2f, NormalPowerN3f, NormalICTN3f);
weights = rand(1,6);
weights = weights / sum(weights);
normalimpactw = bsxfun(@times, normalimpact, weights);
max_vals = max(normalimpactw);
Dplus = zeros(size(normalimpactw,1), 1);
for ii =1: size(normalimpactw, 1 )
Dplus(ii, :) = sqrt(sum([normalimpactw(ii,:)-max_vals].^2 ));
end
Dplus;
min_vals = min(normalimpactw);
Dminus = zeros(size(normalimpactw,1), 1);
for ii =1: size(normalimpactw, 1 )
Dminus(ii, :) = sqrt(sum([normalimpactw(ii,:)-min_vals].^2 ));
end
Dminus;
Sscore = zeros(size(Dminus,1),1);
for n=1:296
Sscore(n,:) = Dminus(n,:)/(Dminus(n,:)+Dplus(n,:));
end
[~,rank] = ismember(Sscore,sort(Sscore,'descend'));
RankOfNode = rank;