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="https://doi.org/10.1016/0377-0427(87)90125-7", bibkey="doi:10.1016/0377-04278790125-7") public class EvaluateSilhouette<O> extends java.lang.Object implements Evaluator
Reference:
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
TODO: keep all silhouette values, and allow visualization!
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 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 |
---|
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 java.lang.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 © 2019 ELKI Development Team. License information.