Skip to main content
. 2020 Apr 11;20(8):2163. doi: 10.3390/s20082163
Algorithm 1 Pseudocode for Signal Modulation
   1: initialize n, ref[n], measured[n], m0, J, Jthresh
   2: in1
   3: while i>0 do
   4:  measured[i] ← measured[i1] ▹ Shift the data array to the right by one
   5:  ii1
   6: measured[0] ← current measured value (i.e., 0 or 1)
   7: j0
   8: while j<n do
   9:  if measured[j] == ref[j] then ▹ Compare the jth bit
 10:    mm+1
 11:  jj+1
 12: Jm/n
 13: if JJthresh then ▹ Signal matching case
 14:  retrieve x and y position ▹ Obtain x and y position information