public class PairCounting extends Object
Modifier and Type | Field and Description |
---|---|
static long |
MAX_SIZE
This is the maximum size this implementation can support.
|
protected long[] |
pairconfuse
Pair counting confusion matrix (flat: inBoth, inFirst, inSecond, inNone)
|
Modifier | Constructor and Description |
---|---|
protected |
PairCounting(ClusterContingencyTable table)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
adjustedRandIndex()
Computes the adjusted Rand index (ARI).
|
double |
f1Measure()
Get the pair-counting F1-Measure.
|
double |
fMeasure(double beta)
Get the pair-counting F-Measure
|
double |
fowlkesMallows()
Computes the pair-counting Fowlkes-mallows (flat only, non-hierarchical!)
|
double |
jaccard()
Computes the Jaccard index
|
long |
mirkin()
Computes the Mirkin index
|
double |
precision()
Computes the pair-counting precision.
|
double |
randIndex()
Computes the Rand index (RI).
|
double |
recall()
Computes the pair-counting recall.
|
public static final long MAX_SIZE
protected long[] pairconfuse
protected PairCounting(ClusterContingencyTable table)
public double fMeasure(double beta)
beta
- Beta value.public double f1Measure()
public double precision()
public double recall()
@Reference(authors="Fowlkes, E.B. and Mallows, C.L.", title="A method for comparing two hierarchical clusterings", booktitle="Journal of the American Statistical Association, Vol. 78 Issue 383") public double fowlkesMallows()
Fowlkes, E.B. and Mallows, C.L.
A method for comparing two hierarchical clusterings
In: Journal of the American Statistical Association, Vol. 78 Issue 383
@Reference(authors="Rand, W. M.", title="Objective Criteria for the Evaluation of Clustering Methods", booktitle="Journal of the American Statistical Association, Vol. 66 Issue 336", url="http://www.jstor.org/stable/10.2307/2284239") public double randIndex()
Rand, W. M.
Objective Criteria for the Evaluation of Clustering Methods
Journal of the American Statistical Association, Vol. 66 Issue 336
public double adjustedRandIndex()
public double jaccard()
public long mirkin()