public class ClusterContingencyTable extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClusterContingencyTable.Util
Utility class.
|
Modifier and Type | Field and Description |
---|---|
protected BCubed |
bcubed
BCubed measures
|
protected boolean |
breakNoiseClusters
Noise cluster handling
|
protected int[][] |
contingency
Contingency matrix
|
protected EditDistance |
edit
Edit-Distance measures
|
protected Entropy |
entropy
Entropy-based measures
|
protected BitSet |
noise1
Noise flags
|
protected BitSet |
noise2
Noise flags
|
protected PairCounting |
paircount
Pair counting measures
|
protected boolean |
selfPairing
Self pairing
|
protected int |
size1
Number of clusters in first
|
protected int |
size2
Number of clusters in second
|
protected SetMatchingPurity |
smp
Set 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()