View full-text article in PMC Sensors (Basel). 2020 Nov 6;20(21):6335. doi: 10.3390/s20216335 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 3Calculate_Prototypes() of FM algorithm. 1: for k=1;k<n;k=k+1 do 2: v0=xk, t=0, E0=1 3: while Et≥ε1 do 4: t=t+1 5: μxv=11+r2·dxv2, using vt−1 6: vt=∑x∈Xμxvt2·xμxvt2 7: Et=∑α=1Fvtα−vt−1α 8: end while 9: if ∑αFvα−wα>ε2, ∀w∈V then 10: V≡V+v. 11: end if 12: end for