public class EvaluateSimplifiedSilhouette extends Object implements Evaluator
Modifier and Type | Class and Description |
---|---|
static class |
EvaluateSimplifiedSilhouette.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private NumberVectorDistanceFunction<?> |
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 |
---|
EvaluateSimplifiedSilhouette(NumberVectorDistanceFunction<?> distance,
NoiseHandling noiseOpt,
boolean penalize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static int |
centroids(Relation<? extends NumberVector> rel,
List<? extends Cluster<?>> clusters,
NumberVector[] centroids,
NoiseHandling noiseOption)
Compute centroids.
|
double |
evaluateClustering(Database db,
Relation<? extends NumberVector> rel,
Clustering<?> c)
Evaluate a single clustering.
|
void |
processNewResult(ResultHierarchy hier,
Result result)
Process a result.
|
private static final Logging LOG
private NoiseHandling noiseOption
private NumberVectorDistanceFunction<?> distance
private boolean penalize
NoiseHandling.IGNORE_NOISE
is set.private String key
public EvaluateSimplifiedSilhouette(NumberVectorDistanceFunction<?> distance, NoiseHandling noiseOpt, boolean penalize)
distance
- Distance functionnoiseOpt
- 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 centroids(Relation<? extends NumberVector> rel, List<? extends Cluster<?>> clusters, NumberVector[] centroids, NoiseHandling noiseOption)
rel
- Data relationclusters
- Clusterscentroids
- Output array for 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.