Skip to main content
. 2022 Mar 10;8(3):70. doi: 10.3390/jimaging8030070
Algorithm 1: Silhouette Analysis (SA)
For every sample
  •   1.

    Find the mean distance from all features in the same cluster (𝒶i)

  •   2.

    Find the mean distance from all features in the closest cluster (𝒷i)

  •   3.
    Find the coefficient: 𝒮𝒸=𝒷i𝒶imax(𝒶i,𝒷i)
    • If𝒮𝒸=0, the sample is very close to the neighboring clusters
    • If𝒮𝒸=1, the sample is far away from the neighboring clusters
    • If𝒮𝒸=1, the sample is assigned to the wrong clusters