Skip to main content
. 2019 Nov 27;13:70. doi: 10.3389/fninf.2019.00070

Algorithm 1: Computing weight vector for EROS (Yang and Shahabi, 2004)

Input: An n × N matrix S, where n is the number of variables for the dataset and N is the number of MTS items in the dataset.
Each column vector si in S represents all the eigenvalues for ith MTS item in the dataset. sij is a value at column i and row j in S. s*i is ith row in S. si* is ith column
   1: for i = 1 to N do
   2:       si  si/ j=1nsij
   3: end for
   4: for i = 1 to n do
   5:       wif(s*i)
   6: end for
   7: for i = 1 to n do
   8:       wi  wi/j=1nwj
   9: end for