This commit is contained in:
Gilles 2020-03-15 01:38:10 +01:00
parent aef8f5272d
commit c13179ef73
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,9 @@ package org.apache.commons.math4.ml.clustering;
import java.util.List; import java.util.List;
/**
* Defines a measure of the quality of clusters.
*/
public interface ClusterEvaluator { public interface ClusterEvaluator {
/** /**
* @param cList List of clusters. * @param cList List of clusters.
@ -27,6 +30,8 @@ public interface ClusterEvaluator {
double score(List<? extends Cluster<? extends Clusterable>> cList); double score(List<? extends Cluster<? extends Clusterable>> cList);
/** /**
* Provides a means to interpret the {@link #score(List) score value}.
*
* @param a Score computed by this evaluator. * @param a Score computed by this evaluator.
* @param b Score computed by this evaluator. * @param b Score computed by this evaluator.
* @return {@code true} if the evaluator considers that score * @return {@code true} if the evaluator considers that score