Skip to main content
. Author manuscript; available in PMC: 2020 Jan 1.
Published in final edited form as: IEEE Trans Biomed Eng. 2018 Apr 9;66(1):165–175. doi: 10.1109/TBME.2018.2824725

TABLE III.

Algorithm 1 The detailed steps for computing an intra-inter class distance ratio as a separation measure. The Smaller ratio denotes higher intra-class compactness and label separation.

Input:Feature matrix X and the number of class C.

Step 1: Compute the mean feature vector for the i-th class, i.e., x¯i=1Nij=1Nixij where xij denote the j-th sample from the i-th class, and Ni is the number of samples in the i-th class;
Step 2: Compute the mean intra-class squared distance (i.e., intra-class variance) for the i-th class, i.e., d¯i=1Nij=1Nixijx¯i22, and then compute the mean intra-class variance, i.e., d¯intra=1Ci=1Cd¯i;
Step 3: Compute the mean inter-class squared distance, i.e., d¯inter=1Ci=1Cx¯ix¯22, where x¯ is the mean of the class means;
Step 4: Compute the intra-inter class distance ratio, i.e., r=d¯intra/d¯inter;

Output: Intra-inter class distance ratio r.