TABLE III.
Input:Feature matrix X and the number of class C. |
Step 1: Compute the mean feature vector for the i-th class, i.e., 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., , and then compute the mean intra-class variance, i.e., ; Step 3: Compute the mean inter-class squared distance, i.e., , where is the mean of the class means; Step 4: Compute the intra-inter class distance ratio, i.e., ; |
Output: Intra-inter class distance ratio r. |