Skip to main content
. 2018 Oct 28;18(11):3661. doi: 10.3390/s18113661
Algorithm 1: CD-ICC Pseudo Code.
Require: dsd=0.1:0.1:3.5, scal=random (1, length(dsd)), ξmax, γthd,
  • 01 

    begin

  • 02 

    for dsd

  • 03 

    for z=1:1:length(dsd)

  • 04 

    dsr=scal (z) dsd(z)

  • 05 

    drd=scal (z)dsd (z)

  • 06 

    Select ξmin ∈ random [0, 7]

  • 07 

    Calculate back-off time given in (27)

  • 08 

    Calculate Rate given in (30)

  • 09 

    Calculate time as

  • 10 

    Tx=number of bits of xRate

  • 11 

    Calculate e2e delay given in (19)

  • 12 

    Calculate duty cycle given in (31)

  • 13 

    Calculate average power consumption given in (32)

  • 14 

    Endfor

  • 15 

    Endfor