View full-text article in PMC Sensors (Basel). 2020 Apr 29;20(9):2513. doi: 10.3390/s20092513 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2020 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 (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 9 computeAverageRow. Input: S→^ Output: k→^ 1:forc←1 to |P→^is| do 2: k^c=0 3:end for 4:forh←1 to |P→^is| do 5: avg=0,size=0 6: for g←1 to |P→^js| do 7: if S^(h,g)≠−1 then 8: avg=avg+S^(h,g) 9: size=size+1 10: end if 10: end for 12: k^h=avgsize 13:end for