O
- Object type@Reference(authors="P. J. Rousseeuw", title="Silhouettes: A graphical aid to the interpretation and validation of cluster analysis", booktitle="Journal of Computational and Applied Mathematics, Volume 20", url="http://dx.doi.org/10.1016%2F0377-0427%2887%2990125-7") public class EvaluateSilhouette<O> extends Object implements Evaluator
P. J. Rousseeuw
Silhouettes: A graphical aid to the interpretation and validation of cluster
analysis
In: Journal of Computational and Applied Mathematics Volume 20, November 1987
Modifier and Type | Class and Description |
---|---|
static class |
EvaluateSilhouette.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private DistanceFunction<? super O> |
distance
Distance function to use.
|
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 |
---|
EvaluateSilhouette(DistanceFunction<? super O> distance,
boolean mergenoise)
Constructor.
|
EvaluateSilhouette(DistanceFunction<? super O> distance,
NoiseHandling noiseOption,
boolean penalize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
evaluateClustering(Database db,
Relation<O> rel,
DistanceQuery<O> dq,
Clustering<?> c)
Evaluate a single clustering.
|
void |
processNewResult(ResultHierarchy hier,
Result result)
Process a result.
|
private static final Logging LOG
private DistanceFunction<? super O> distance
private NoiseHandling noiseOption
private boolean penalize
NoiseHandling.IGNORE_NOISE
is set.private String key
public EvaluateSilhouette(DistanceFunction<? super O> distance, NoiseHandling noiseOption, boolean penalize)
distance
- Distance functionnoiseOption
- Handling of "noise" clusters.penalize
- noise, if NoiseHandling.IGNORE_NOISE
is set.public EvaluateSilhouette(DistanceFunction<? super O> distance, boolean mergenoise)
distance
- Distance functionmergenoise
- Flag to treat noise as clusters, instead of breaking them
into singletons.public double evaluateClustering(Database db, Relation<O> rel, DistanceQuery<O> dq, Clustering<?> c)
db
- Databaserel
- Data relationdq
- Distance queryc
- Clusteringpublic 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.