Skip to main content
. 2023 Jan 30;25(2):250. doi: 10.3390/e25020250
Algorithm 2: Signal detection using the greedy approach.
  •  Input: 

    yRN, xRL, and the number of signal occurrences K

  •    1:

    compute f according to (6)

  •    2:

    fori=1 to K do

  •    3:

       n^i=argmaxf    subject to    |n^in^j|L for all j<i

  •    4:

       γK[i]=maxf    subject to    |n^in^j|L for all j<i

  •    5:

    end for

  •    6:

    γK=i=1KγK[i]

  •    7:

    return Estimates of the locations of the signal occurrences n^1,n^K, and γK