@Reference(authors="R. B. Calinski and J. Harabasz", title="A dendrite method for cluster analysis", booktitle="Communications in Statistics-theory and Methods, 3(1)", url="http://dx.doi.org/10.1080/03610927408827101") public class EvaluateVarianceRatioCriteria<O> extends Object implements Evaluator
R. B. Calinski and J. Harabasz
A dendrite method for cluster analysis
Communications in Statistics-theory and Methods, 3(1)
Modifier and Type | Class and Description |
---|---|
static class |
EvaluateVarianceRatioCriteria.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private String |
key
Key for logging statistics.
|
private static Logging |
LOG
Logger for debug output.
|
private NoiseHandling |
noiseOption
Option for noise handling.
|
private boolean |
penalize
Penalize noise, if
NoiseHandling.IGNORE_NOISE is set. |
Constructor and Description |
---|
EvaluateVarianceRatioCriteria(NoiseHandling noiseOption,
boolean penalize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluateClustering(Database db,
Relation<? extends NumberVector> rel,
Clustering<?> c)
Evaluate a single clustering.
|
static int |
globalCentroid(Centroid overallCentroid,
Relation<? extends NumberVector> rel,
List<? extends Cluster<?>> clusters,
NumberVector[] centroids,
NoiseHandling noiseOption)
Update the global centroid.
|
void |
processNewResult(ResultHierarchy hier,
Result result)
Process a result.
|
private static final Logging LOG
private NoiseHandling noiseOption
private boolean penalize
NoiseHandling.IGNORE_NOISE
is set.private String key
public EvaluateVarianceRatioCriteria(NoiseHandling noiseOption, boolean penalize)
noiseOption
- Flag to control noise handlingpenalize
- noise, if NoiseHandling.IGNORE_NOISE
is set.public double evaluateClustering(Database db, Relation<? extends NumberVector> rel, Clustering<?> c)
db
- Databaserel
- Data relationc
- Clusteringpublic static int globalCentroid(Centroid overallCentroid, Relation<? extends NumberVector> rel, List<? extends Cluster<?>> clusters, NumberVector[] centroids, NoiseHandling noiseOption)
overallCentroid
- Centroid to udpaterel
- Data relationclusters
- Clusterscentroids
- Cluster centroidspublic void processNewResult(ResultHierarchy hier, Result result)
ResultProcessor
processNewResult
in interface ResultProcessor
hier
- The base of the result tree.result
- Newly added result subtree.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.