Skip to main content
. 2025 Feb 28;11:e2703. doi: 10.7717/peerj-cs.2703

Algorithm 6 . AIFPIFSC2’ pseudocode.

Input: (Dtrain)m1×n, Cm1×1, and (Dtest)m2×n
Output: Tm2×1
1: function AIFPIFSC2(train, C, test)
2:     λ1round(n)
3:     λ2round(ln(n)/ln(length(unique(C))))
4:    Compute ifwDtrainλ1P using Dtrain,C and λ1
5:    Compute feature fuzzification of Dtrain and Dtest, namely D~train and D~test
6:    Compute D~~trainλ1 and D~~testλ1
7:    for i from 1 to tm do
8:     Compute test ifpifs-matrix [aij] using ifwDtrainλ1P and D~~ktestλ1
9:     for j from 1 to em do
10:       Compute train ifpifs-matrix [bij] using ifwDtrainλ1P and D~~ktrainλ1
11:       cm(j,1)s~H([aij],[bij])
12:       cm(j,2)s~Hs([aij],[bij])
13:       cm(j,3)s~Ch([aij],[bij])
14:       cm(j,4)s~E([aij],[bij])
15:       cm(j,5)s~M3([aij],[bij])
16:       cm(j,6)s~J([aij],[bij])
17:       cm(j,7)s~C([aij],[bij])
18:     end for
19:     for j from 1 to size(cm,2) do
20:       sd(1,j)std(cm(:,j))
20:     end for
21:      wm2(1,:)1NORMALIZE(sd/4)
22:      dm[wm2;cm]
23:      idmINORMALIZE(dm,λ2)
24:      [,,,op]iCCE10(idm)
25:      ti1C(op(1),1)
26:   end for
27: end function