Skip to main content
. 2020 Aug 30;22(9):958. doi: 10.3390/e22090958
Algorithm 1 Hi-DM encoding.
  • 1:

    Data: Input bits b=(b1,,bk)

  • 2:

    Result: The output amplitude sequence d(1)

  • 3:

    initialization d(L+1)=D(L)

  • 4:

    for=L,,1do

  • 5:

    for h=1,,T do

  • 6:

      Take bt the first k bits of b;

  • 7:

      Remove bt from b;

  • 8:

      Let Dj() be the DM in the component dh(+1)

  • 9:

      Use Dj() to map bt to a train of N symbols and obtain the train of symbols d(h1)N+1(),,dhN(), where di()D1(1),,DM(1) if >1 and di()1,3,,2M11 if =1;

  • 10:

      Append the train of symbol d()=(d(),d(h1)N+1(),,dhN());

  • 11:

    end for

  • 12:

    end for