public class MutualInformation extends java.lang.Object implements ClusterMeasure
Modifier and Type | Field and Description |
---|---|
static MutualInformation |
instance |
Constructor and Description |
---|
MutualInformation() |
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 mutual information.
|
java.lang.String |
toString() |
public static final MutualInformation instance
public double measure(int[] y1, int[] y2)
ClusterMeasure
measure
in interface ClusterMeasure
y1
- 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