public class AdjustedRandIndex extends java.lang.Object implements ClusteringMetric
RandIndex,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static AdjustedRandIndex |
instance
Default instance.
|
| Constructor and Description |
|---|
AdjustedRandIndex() |
| Modifier and Type | Method and Description |
|---|---|
static double |
of(int[] y1,
int[] y2)
Calculates the adjusted rand index.
|
double |
score(int[] y1,
int[] y2)
Returns a score to measure the quality of clustering.
|
java.lang.String |
toString() |
public static final AdjustedRandIndex instance
public double score(int[] y1,
int[] y2)
ClusteringMetricscore in interface ClusteringMetricy1 - the cluster labels.y2 - the alternative cluster labels.public static double of(int[] y1,
int[] y2)
public java.lang.String toString()
toString in class java.lang.Object