public class RandIndex extends java.lang.Object implements ClusteringMetric
| Modifier and Type | Field and Description |
|---|---|
static RandIndex |
instance
Default instance.
|
| Constructor and Description |
|---|
RandIndex() |
| Modifier and Type | Method and Description |
|---|---|
static double |
of(int[] y1,
int[] y2)
Calculates the rand index.
|
double |
score(int[] y1,
int[] y2)
Returns a score to measure the quality of clustering.
|
java.lang.String |
toString() |
public static final RandIndex 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