Skip to main content
. 2021 Mar 1;21(5):1685. doi: 10.3390/s21051685
Algorithm 1. (Cost Function).
  • 1:

    fori=1 to Nrow do

  • 2:

        Find the column index of non-zero elements in row i and store in the vector P;

  • 3:

        for k=1 to Numel(P)1 do

  • 4:

            Compute the CostFunction=PkPk+1;

  • 5:

        end for

  • 6:

    end for