Skip to main content
. 2020 Nov 6;20(21):6335. doi: 10.3390/s20216335
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 vt1

  • 6:

      vt=xXμxvt2·xμxvt2

  • 7:

      Et=α=1Fvtαvt1α

  • 8:

    end while

  • 9:

    if αFvαwα>ε2, wV then

  • 10:

      VV+v.

  • 11:

    end if

  • 12:

    end for