Skip to main content
. 2020 Dec 10;20(24):7083. doi: 10.3390/s20247083
Algorithm 1. Reversed Correlation Algorithm
1:  function RCA(N)       ▹ N is a desired number of channels from R subset
2:    //Ch=ch1,ch2,…,ch128          ▹ set of all channels (features)
3:    R1← take the first channel with the min correlation
4:    while i<N do
5:      while j < length of Ch do
6:        while k < length of R do
7:          value← compute correlation between channels
8:          sum←sum + value
9:          k←k+1
10:        end while
11:        Ri←sum/len(R)
12:        sum←0
13:        j←j+1
14:      end while
15:      Ri← choose channel with the lowest sum of value
16:      k←k+1
17:    end while
18:    return Ri                   ▹ selected subset of channels
19:  end function