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 long[] |
noise1
Noise flags
|
protected long[] |
noise2
Noise flags
|
protected PairCounting |
paircount
Pair counting measures
|
protected boolean |
selfPairing
Self pairing
|
protected int |
size1
Number of clusters.
|
protected int |
size2
Number of clusters.
|
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 long[] noise1
protected long[] 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()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.