View full-text article in PMC Sensors (Basel). 2021 Oct 29;21(21):7208. doi: 10.3390/s21217208 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 3 Assign Weights Input: D,Dmax,N,M,K,P Output: G Step: 1 Inputdata: α=N+M+K+P Gα,α←zeros G(D≤Dmax)←ones G2α,α←zeros v2≈v1;v3>v9;v4≈v2;v5>v4 v6>>v3;v7>v5;v8≈v7;v9>v8 ∀v1,v2,v3,v4,v5,v6,v7,v8,v9∈N Step: 2 Assignmentofweights: G2(1:N,1:N)=v1 G2(1:N,N+1:N+M)=v2 G2(N+1:N+M,1:N)=v2 G2(1:N,N+M+1:N+M+K)=v3 G2(N+M+1:N+M+K,1:N)=v3 G2(1:N,N+M+K+1:N+M+K+P)=∞ G2(N+M+K+1:N+M+K+P,1:N)=∞ G2(N+1:N+M,N+1:N+M)=v4 G2(N+1:N+M,N+M+1:N+M+K)=v5 G2(N+M+1:N+M+K,N+1:N+M)=v5 G2(N+1:N+M,N+M+K+1:N+M+K+P)=v6 G2(N+M+K+1:N+M+K+P,N+1:N+M)=v6 G2(N+M+1:N+M+K,N+M+1:N+M+K)=v7 G2(N+M+1:N+M+K,N+M+K+1:N+M+K+P)=v8 G2(N+M+K+1:N+M+K+P,N+M+1:N+M+K)=v8 G2(N+M+K+1:N+M+K+P,N+M+K+1:N+M+K+P)=v9 G=G∗G2