Skip to main content
. 2018 Sep 25;18(10):3225. doi: 10.3390/s18103225
Algorithm 2 Determining rp(t) for chunk t.
  • 1:

    if t=1 then

  • 2:

    if r.b.s.st= true then

  • 3:

      rp(t)=0

  • 4:

    else

  • 5:

      rp(t)=μγ+1

  • 6:

    end if

  • 7:

    else

  • 8:

    if l.b.s.st= true and r.b.s.st= true then

  • 9:

      rp(t)=0

  • 10:

    else if l.b.s.st= true and r.b.s.st= false then

  • 11:

      rp(t)=μ+1

  • 12:

    else if l.b.s.st= false and r.b.s.st= true then

  • 13:

      rp(t)=μ+1

  • 14:

    else if l.b.s.st= false and r.b.s.st= false then

  • 15:

      rp(t)=μγ+2

  • 16:

    end if

  • 17:

    end if