Skip to main content
. 2020 Aug 10;22(8):876. doi: 10.3390/e22080876
Algorithm 2 Initialization function
  • 1:

    input:m;                       ▹ the number of sub-populations m

  • 2:

    output:P1,,Pk,,Pm;        ▹ the initial sub-populations P1,,Pk,,Pm

  • 3:

    for each feature fiFdo                   ▹ the original feature set F

  • 4:

        if H(fi)=0 then

  • 5:

            FF\fi;

  • 6:

        end if

  • 7:

    end for

  • 8:

    [C1,,Ck,,Cm] patition F into m clusters; ▹ use the spherical k-means algorithm

  • 9:

    fork=1 to m do

  • 10:

        for each individual indiPk do

  • 11:

            indi initialize by selecting n features via stochastic sampling;     ▹ use Equation (1)

  • 12:

        end for

  • 13:

    end for