Class SumOfClusterVariances<T extends Clusterable>
java.lang.Object
org.hipparchus.clustering.evaluation.ClusterEvaluator<T>
org.hipparchus.clustering.evaluation.SumOfClusterVariances<T>
- Type Parameters:
T
- the type of the clustered points
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 \).
-
Constructor Summary
-
Method Summary
Methods inherited from class org.hipparchus.clustering.evaluation.ClusterEvaluator
centroidOf, distance, isBetterScore
-
Constructor Details
-
SumOfClusterVariances
Simple constructor.- Parameters:
measure
- the distance measure to use
-
-
Method Details
-
score
Computes the evaluation score for the given list of clusters.- Specified by:
score
in classClusterEvaluator<T extends Clusterable>
- Parameters:
clusters
- the clusters to evaluate- Returns:
- the computed score
-