Class ClusterRadius
- java.lang.Object
-
- elki.evaluation.clustering.internal.ClusterRadius
-
- All Implemented Interfaces:
Evaluator
,ResultProcessor
public class ClusterRadius extends java.lang.Object implements Evaluator
Evaluate a clustering by the (weighted) cluster radius. This is based on a MiniMax kind of cluster model.- Since:
- 0.8.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterRadius.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private NumberVectorDistance<?>
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
Handling of Noise clusters
-
Constructor Summary
Constructors Constructor Description ClusterRadius(NumberVectorDistance<?> distance, NoiseHandling noiseOption)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
evaluateClustering(Database db, Relation<? extends NumberVector> rel, Clustering<?> c)
Evaluate a single clustering.void
processNewResult(java.lang.Object result)
Process a result.
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Logger for debug output.
-
noiseOption
private NoiseHandling noiseOption
Handling of Noise clusters
-
distance
private NumberVectorDistance<?> distance
Distance function to use.
-
key
private java.lang.String key
Key for logging statistics.
-
-
Constructor Detail
-
ClusterRadius
public ClusterRadius(NumberVectorDistance<?> distance, NoiseHandling noiseOption)
Constructor.- Parameters:
distance
- Distance function to use.noiseOption
- Control noise handling.
-
-
Method Detail
-
evaluateClustering
public double evaluateClustering(Database db, Relation<? extends NumberVector> rel, Clustering<?> c)
Evaluate a single clustering.- Parameters:
db
- Databaserel
- Data relationc
- Clustering- Returns:
- ssq
-
processNewResult
public void processNewResult(java.lang.Object result)
Description copied from interface:ResultProcessor
Process a result.- Specified by:
processNewResult
in interfaceResultProcessor
- Parameters:
result
- Newly added result subtree.
-
-