Skip to main content
. 2023 Oct 15;23(20):8477. doi: 10.3390/s23208477
Algorithm 4: Calculating the distances between the two-digit classes
Assume that Fm = (f1 f2 fS) is a feature matrix for mthclass and m = 1,2, , O and S is the number of the examples in a given class.
  • S1: Calculate the centroids for each class in a given dataset.

  • S2: Calculate the distance between the centroids of two classes.

    Lm(m1)=||FcmFcm1||