0% found this document useful (1 vote)
485 views1 page

Weighted Normalization & Performance Calculation

The document normalizes a matrix X by dividing each element by the square root of the sum of squares of its column. It then calculates a weighted normalized matrix Yw by multiplying Y by a weight vector W. Next, it finds the positive and negative best values Vp and Vn for each column of Yw based on the sign of weights in Wcriteria. It then calculates the Euclidean distance of each element of Yw from Vp and Vn to get Sp and Sn. Finally, it calculates a performance score P for each row as the ratio of its Sn to the sum of its Sp and Sn.

Uploaded by

chupchap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
485 views1 page

Weighted Normalization & Performance Calculation

The document normalizes a matrix X by dividing each element by the square root of the sum of squares of its column. It then calculates a weighted normalized matrix Yw by multiplying Y by a weight vector W. Next, it finds the positive and negative best values Vp and Vn for each column of Yw based on the sign of weights in Wcriteria. It then calculates the Euclidean distance of each element of Yw from Vp and Vn to get Sp and Sn. Finally, it calculates a performance score P for each row as the ratio of its Sn to the sum of its Sp and Sn.

Uploaded by

chupchap
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Xval=length(X(:,1));

Y = zeros([Xval,length(W)]);
%% calculating the normalized matrix
for j=1:length(W)
for i=1:Xval
Y(i,j)=X(i,j)/sqrt(sum((X(:,j).^2)));
end
end
Normalized_Matrix = num2str([Y])
%% calculating the weighted mormalized matrix
for j=1:length(W)
for i=1:Xval
Yw(i,j)=Y(i,j).*W(j);
end
end
Weighted_Normalized_Matrix = num2str([Yw])
%% calculating the positive and negative best

for j=1:length(W)
if Wcriteria(1,j)== 0
Vp(1,j)= min(Yw(:,j));
Vn(1,j)= max(Yw(:,j));
else
Vp(1,j)= max(Yw(:,j));
Vn(1,j)= min(Yw(:,j));
end
end
Positive_best = num2str([Vp])
Negative_best = num2str([Vn])

%% Euclidean distance from Ideal Best and Worst


for j=1:length(W)
for i=1:Xval
Sp(i,j)=((Yw(i,j)-Vp(j)).^2);
Sn(i,j)=((Yw(i,j)-Vn(j)).^2);
end
end

for i=1:Xval
Splus(i)=sqrt(sum(Sp(i,:)));
Snegative(i)=sqrt(sum(Sn(i,:)));
end
%% calculating the performance score
P=zeros(Xval,1);
for i=1:Xval
P(i)=Snegative(i)/(Splus(i)+Snegative(i));
end
Performance_Score = num2str([P])

You might also like