Class SumOfClusterVariances

  • All Implemented Interfaces:
    ClusterEvaluator

    public class SumOfClusterVariances
    extends Object
    implements ClusterEvaluator
    Computes the sum of intra-cluster distance variances according to the formula:
     \( score = \sum\limits_{i=1}^n \sigma_i^2 \)
     
    where n is the number of clusters and \( \sigma_i^2 \) is the variance of intra-cluster distances of cluster \( c_i \).
    Since:
    3.3
    • Method Detail

      • isBetterScore

        public boolean isBetterScore​(double a,
                                     double b)
        Provides a means to interpret the score value.
        Specified by:
        isBetterScore in interface ClusterEvaluator
        Parameters:
        a - Score computed by this evaluator.
        b - Score computed by this evaluator.
        Returns:
        true if the evaluator considers that score a is better than score b.