Skip to main content
. 2021 Jul 20;21(14):4933. doi: 10.3390/s21144933
Algorithm 1 F-Classify algorithm: Fuzzification.
  • Require: 

    Table T with m data attributes and n tuples

  • Ensure: 

    Release Table QT and {ST1,…,STm}

    Initialisation Split the table T into multiple sub-sets (One sub-set for QI and remaining sub-sets for SAs) from the data sets. multiple sub-sets = d1, d2, d3…dk data attributes (linguistic variables) = lv1,lv2,…,lvm Membership functions = μ γ = number of attributes in one subset η = number of member-ship functions for lv α: Number of fuzzy rules (α=ηγ) Rules R [] = {R1,…,Rα} Classes [] = {C1,…,Cα}

  •  1:

     for i=1 to m do

  •  2:

         define mfs for lvs

  •  3:

     end for

  •  4:

     for i=1 to k do

  •  5:

         for j=1 to η do

  •  6:

             R[i]←AND(lv[1][j],lv[2][j],…lv[γ][j])

  •  7:

             C[i]←R[i]

  •  8:

         end for

  •  9:

     end for

  • 10:

    fori=1 to n do

  • 11:

        for j=1 to α do

  • 12:

           if (T(Tuple)∈(C[α])) then

  • 13:

              Generate a new table according to Classes for QIs (QT) and SA(ST1,ST2,…STm)

  • 14:

           end if

  • 15:

        end for

  • 16:

    end for

  • 17:

    return Tables QT and ST1,ST2,…,STm