Skip to main content
. 2023 Jun 30;15(13):3428. doi: 10.3390/cancers15133428
Algorithm A2 Distinct feature vector identifier (DFI)
Input: A set of feature vectors H={h1,h2,,hnH} and a similarity threshold σ0,1, where hjRD×1 for j=1,2,,nH. Moreover, set DF={} (empty set).
Step 1: Compute B={b1,b2,.bnF}, where bj=hjhjRD×1, for j=1,2,,nH.
Step 2: While B{} (empty set) do
  • Step 2.1: Set bR=popRandB, where popRand. is a function that randomly selects only one element of its input set, i.e., H.

  • Step 2.2: Compute

C=c1,c2,,cR1,cR+1,,cnHR1×nH1,
      where cj=bRTbj for j=1,2,,R1,R+1,,nH.
  • Step 2.3: for j=1,2,,R1,R+1,,nH, do

       If (cj σ), then
          B=B.removebj,
where A.removea is a function that removes element a from set A.
      End (for).
  • Step 2.4: Set

   DF=DFhR,
   And
   B=B.removebR.
  End (While)
Output: DF