T
- the type of the clustered pointspublic class SumOfClusterVariances<T extends Clusterable> extends ClusterEvaluator<T>
\( 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 and Description |
---|
SumOfClusterVariances(DistanceMeasure measure) |
Modifier and Type | Method and Description |
---|---|
double |
score(List<? extends Cluster<T>> clusters)
Computes the evaluation score for the given list of clusters.
|
centroidOf, distance, isBetterScore
public SumOfClusterVariances(DistanceMeasure measure)
measure
- the distance measure to usepublic double score(List<? extends Cluster<T>> clusters)
score
in class ClusterEvaluator<T extends Clusterable>
clusters
- the clusters to evaluateCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.