@Reference(authors="L. J. Hubert, J. R. Levin", title="A general statistical framework for assessing categorical clustering in free recall", booktitle="Psychological Bulletin, Vol. 83(6)", url="https://doi.org/10.1037/0033-2909.83.6.1072", bibkey="doi:10.1037/0033-2909.83.6.1072") public class EvaluateCIndex<O> extends java.lang.Object implements Evaluator
Note: This requires pairwise distance computations, so it is not recommended to use this on larger data sets.
Reference:
L. J. Hubert, J. R. Levin
A general statistical framework for assessing categorical clustering in free
recall
Psychological Bulletin, Vol. 83(6)
Modifier and Type | Class and Description |
---|---|
static class |
EvaluateCIndex.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private DistanceFunction<? super O> |
distance
Distance function to use.
|
private java.lang.String |
key
Key for logging statistics.
|
private static Logging |
LOG
Logger for debug output.
|
private NoiseHandling |
noiseOption
Option for noise handling.
|
Constructor and Description |
---|
EvaluateCIndex(DistanceFunction<? super O> distance,
NoiseHandling noiseOpt)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluateClustering(Database db,
Relation<? extends O> rel,
DistanceQuery<O> dq,
Clustering<?> c)
Evaluate a single clustering.
|
protected double |
processCluster(Cluster<?> cluster,
java.util.List<? extends Cluster<?>> clusters,
int i,
DistanceQuery<O> dq,
DoubleHeap maxDists,
DoubleHeap minDists,
int w) |
void |
processNewResult(ResultHierarchy hier,
Result result)
Process a result.
|
protected void |
processSingleton(Cluster<?> cluster,
Relation<? extends O> rel,
DistanceQuery<O> dq,
DoubleHeap maxDists,
DoubleHeap minDists,
int w) |
private static final Logging LOG
private NoiseHandling noiseOption
private DistanceFunction<? super O> distance
private java.lang.String key
public EvaluateCIndex(DistanceFunction<? super O> distance, NoiseHandling noiseOpt)
distance
- Distance functionnoiseOpt
- Flag to control noise handlingpublic double evaluateClustering(Database db, Relation<? extends O> rel, DistanceQuery<O> dq, Clustering<?> c)
db
- Databaserel
- Data relationc
- Clusteringprotected double processCluster(Cluster<?> cluster, java.util.List<? extends Cluster<?>> clusters, int i, DistanceQuery<O> dq, DoubleHeap maxDists, DoubleHeap minDists, int w)
protected void processSingleton(Cluster<?> cluster, Relation<? extends O> rel, DistanceQuery<O> dq, DoubleHeap maxDists, DoubleHeap minDists, int w)
public void processNewResult(ResultHierarchy hier, Result result)
ResultProcessor
processNewResult
in interface ResultProcessor
hier
- The base of the result tree.result
- Newly added result subtree.Copyright © 2019 ELKI Development Team. License information.