@Reference(authors="R. B. Calinski, J. Harabasz", title="A dendrite method for cluster analysis", booktitle="Communications in Statistics - Theory and Methods 3(1)", url="https://doi.org/10.1080/03610927408827101", bibkey="doi:10.1080/03610927408827101") @Alias(value="calinski-harabasz") public class EvaluateVarianceRatioCriteria<O> extends java.lang.Object implements Evaluator
Reference:
R. B. Calinski, 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 java.lang.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,
java.util.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 java.lang.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, java.util.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 © 2019 ELKI Development Team. License information.