Interface ClusterEvaluator
-
- All Known Implementing Classes:
CalinskiHarabasz
,SumOfClusterVariances
public interface ClusterEvaluator
Defines a measure of the quality of clusters.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isBetterScore(double a, double b)
Provides a means to interpret thescore value
.static <T extends Clusterable>
ClusterRankingranking(ClusterEvaluator eval)
Converts to aranking function
(as required by clustering implementations).double
score(List<? extends Cluster<? extends Clusterable>> cList)
-
-
-
Method Detail
-
score
double score(List<? extends Cluster<? extends Clusterable>> cList)
- Parameters:
cList
- List of clusters.- Returns:
- the score attributed by the evaluator.
-
isBetterScore
boolean isBetterScore(double a, double b)
Provides a means to interpret thescore value
.- Parameters:
a
- Score computed by this evaluator.b
- Score computed by this evaluator.- Returns:
true
if the evaluator considers that scorea
is better than scoreb
.
-
ranking
static <T extends Clusterable> ClusterRanking ranking(ClusterEvaluator eval)
Converts to aranking function
(as required by clustering implementations).- Type Parameters:
T
- the type of points that can be clustered- Parameters:
eval
- Evaluator function.- Returns:
- a ranking function.
-
-