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