Skip to main content
. 2021 Dec 23;22(1):83. doi: 10.3390/s22010083
Algorithm 2Outliers removal
  • 1:

    Put the first five results into FIFO buffer

  • 2:

    ifhrest —median(FIFO) < threshold then

  • 3:

        go to line 17

  • 4:

        error_count = 0;

  • 5:

    else

  • 6:

        if is last IC then

  • 7:

            error_count = error_count + 1;

  • 8:

            discard result

  • 9:

        else

  • 10:

            select another IC to do peak selection

  • 11:

            go to line 2

  • 12:

        end if

  • 13:

    end if

  • 14:

    iferror_count = 5 then

  • 15:

          reset FIFO and go to 1

  • 16:

    end if

  • 17:

    returns result.