public class EvaluateSimplifiedSilhouette extends java.lang.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 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 |
---|
EvaluateSimplifiedSilhouette(NumberVectorDistanceFunction<?> distance,
NoiseHandling noiseOpt,
boolean penalize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static int |
centroids(Relation<? extends NumberVector> rel,
java.util.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 java.lang.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, java.util.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 © 2019 ELKI Development Team. License information.