@Reference(authors="D. L. Davies, D. W. Bouldin", title="A Cluster Separation Measure", booktitle="IEEE Transactions Pattern Analysis and Machine Intelligence 1(2)", url="https://doi.org/10.1109/TPAMI.1979.4766909", bibkey="DBLP:journals/pami/DaviesB79") public class EvaluateDaviesBouldin extends java.lang.Object implements Evaluator
Reference:
D. L. Davies, D. W. Bouldin
A Cluster Separation Measure
IEEE Transactions Pattern Analysis and Machine Intelligence 1(2)
Modifier and Type | Class and Description |
---|---|
static class |
EvaluateDaviesBouldin.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private NumberVectorDistanceFunction<?> |
distanceFunction
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 |
---|
EvaluateDaviesBouldin(NumberVectorDistanceFunction<?> distance,
NoiseHandling noiseOpt)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluateClustering(Database db,
Relation<? extends NumberVector> rel,
Clustering<?> c)
Evaluate a single clustering.
|
void |
processNewResult(ResultHierarchy hier,
Result result)
Process a result.
|
double[] |
withinGroupDistances(Relation<? extends NumberVector> rel,
java.util.List<? extends Cluster<?>> clusters,
NumberVector[] centroids) |
private static final Logging LOG
private NoiseHandling noiseOption
private NumberVectorDistanceFunction<?> distanceFunction
private java.lang.String key
public EvaluateDaviesBouldin(NumberVectorDistanceFunction<?> distance, NoiseHandling noiseOpt)
distance
- Distance functionnoiseOpt
- Flag to control noise handlingpublic double evaluateClustering(Database db, Relation<? extends NumberVector> rel, Clustering<?> c)
db
- Databaserel
- Data relationc
- Clusteringpublic double[] withinGroupDistances(Relation<? extends NumberVector> rel, java.util.List<? extends Cluster<?>> clusters, NumberVector[] centroids)
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.