Skip to main content
. 2023 Jan 30;25(2):250. doi: 10.3390/e25020250
Algorithm 4: Signal detection using the greedy approach with an unknown number of signal occurrences.
  •  Input: 

    yRN, xRL, Kmax

  •    1:

    forK=1 to Kmax do

  •    2:

       Evaluate γK with respect to y using Algorithm 2

  •    3:

       for i=1 to P do

  •    4:

         Compute γ˜K,i with respect to y˜i (a permutation of y) using Algorithm 2

  •    5:

       end for

  •    6:

       Compute GapN(K)=1Pi=1Pγ˜K,iγK

  •    7:

    end for

  •    8:

    returnK^ (an estimate of the number of signal occurrence in the measurement), and estimates of the locations of the signal occurrences n^1,,n^K^