Interface ClusteringMetric

All Superinterfaces:
Serializable
All Known Implementing Classes:
AdjustedMutualInformation, AdjustedRandIndex, MutualInformation, NormalizedMutualInformation, RandIndex

public interface ClusteringMetric extends Serializable
An abstract interface to measure the clustering performance.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    score(int[] truth, int[] cluster)
    Returns a score to measure the quality of clustering.
  • Method Details

    • score

      double score(int[] truth, int[] cluster)
      Returns a score to measure the quality of clustering.
      Parameters:
      truth - the ground truth (or simply a clustering labels).
      cluster - the alternative cluster labels.
      Returns:
      the metric.