Class 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
    • Field Detail

      • LOG

        private static final Logging LOG
        Logger for debug output.
      • noiseOption

        private NoiseHandling noiseOption
        Handling of Noise clusters
      • 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 - Database
        rel - Data relation
        c - Clustering
        Returns:
        ssq
      • processNewResult

        public void processNewResult​(java.lang.Object result)
        Description copied from interface: ResultProcessor
        Process a result.
        Specified by:
        processNewResult in interface ResultProcessor
        Parameters:
        result - Newly added result subtree.