Class ComputeOutlierHistogram

  • All Implemented Interfaces:
    Evaluator, ResultProcessor

    public class ComputeOutlierHistogram
    extends java.lang.Object
    implements Evaluator
    Compute a Histogram to evaluate a ranking algorithm.

    The parameter -hist.positive specifies the class label of "positive" hits.

    Since:
    0.3
    Author:
    Lisa Reichert, Erich Schubert
    • Field Detail

      • positiveClassName

        private java.util.regex.Pattern positiveClassName
        Stores the "positive" class.
      • bins

        private int bins
        Number of bins
      • splitfreq

        private boolean splitfreq
        Flag to make split frequencies
    • Constructor Detail

      • ComputeOutlierHistogram

        public ComputeOutlierHistogram​(java.util.regex.Pattern positive_class_name,
                                       int bins,
                                       ScalingFunction scaling,
                                       boolean splitfreq)
        Constructor.
        Parameters:
        positive_class_name - Class name
        bins - Bins
        scaling - Scaling
        splitfreq - Scale inlier and outlier frequencies independently
    • Method Detail

      • evaluateOutlierResult

        public HistogramResult evaluateOutlierResult​(Database database,
                                                     OutlierResult or)
        Evaluate a single outlier result as histogram.
        Parameters:
        database - Database to process
        or - Outlier result
        Returns:
        Result
      • 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.