Skip to main content
. 2019 Jul 25;19(15):3268. doi: 10.3390/s19153268
Algorithm 2 Scale Factor Discarding And Joining.
Require:H—the output from Algorithm 1, η—the range threshold (default: η=0.01, ϕ—the frequency threshold (default: ϕ=3), n—is the length of the array H)
  • 1:

    fori0ton2do

  • 2:

        if H.fi>0 then

  • 3:

            sH.si

  • 4:

            fH.fi

  • 5:

            ΨH.Ψi

  • 6:

            for j0ton1 do

  • 7:

               if H.fj>ϕ &|sH.sj|<η then

  • 8:

                   s(sf+H.sjH.fj)/(f+H.fj)

  • 9:

                   ff+H.fj

  • 10:

                   ΨΨH.Ψj

  • 11:

                   H.fj0

  • 12:

               end if

  • 13:

            end for

  • 14:

            H.sis

  • 15:

            H.fif

  • 16:

            H.ΨiΨ

  • 17:

        end if

  • 18:

    end for