
public class ClusterContingencyTable extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | ClusterContingencyTable.UtilUtility class. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected BCubed | bcubedBCubed measures | 
| protected boolean | breakNoiseClustersNoise cluster handling | 
| protected int[][] | contingencyContingency matrix | 
| protected EditDistance | editEdit-Distance measures | 
| protected Entropy | entropyEntropy-based measures | 
| protected BitSet | noise1Noise flags | 
| protected BitSet | noise2Noise flags | 
| protected PairCounting | paircountPair counting measures | 
| protected boolean | selfPairingSelf pairing | 
| protected int | size1Number of clusters in first | 
| protected int | size2Number of clusters in second | 
| protected SetMatchingPurity | smpSet matching purity measures | 
| Constructor and Description | 
|---|
| ClusterContingencyTable(boolean selfPairing,
                       boolean breakNoiseClusters)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| MeanVariance | averageSymmetricGini()Compute the average Gini for each cluster (in both clusterings -
 symmetric). | 
| BCubed | getBCubed()The BCubed based measures | 
| EditDistance | getEdit()Get (compute) the edit-distance based measures | 
| Entropy | getEntropy()Get (compute) the entropy based measures | 
| PairCounting | getPaircount()Get (compute) the pair counting measures. | 
| SetMatchingPurity | getSetMatching()The set-matching measures | 
| void | process(Clustering<?> result1,
       Clustering<?> result2)Process two clustering results. | 
| String | toString() | 
protected boolean breakNoiseClusters
protected boolean selfPairing
protected int size1
protected int size2
protected int[][] contingency
protected BitSet noise1
protected BitSet noise2
protected PairCounting paircount
protected Entropy entropy
protected SetMatchingPurity smp
protected EditDistance edit
protected BCubed bcubed
public ClusterContingencyTable(boolean selfPairing,
                       boolean breakNoiseClusters)
selfPairing - Build self-pairsbreakNoiseClusters - Break noise clusters into individual objectspublic void process(Clustering<?> result1, Clustering<?> result2)
result1 - First clusteringresult2 - Second clusteringpublic PairCounting getPaircount()
public Entropy getEntropy()
public EditDistance getEdit()
public BCubed getBCubed()
public SetMatchingPurity getSetMatching()
public MeanVariance averageSymmetricGini()