Class OutlierPrecisionAtKCurve

  • All Implemented Interfaces:
    Evaluator, ResultProcessor

    public class OutlierPrecisionAtKCurve
    extends java.lang.Object
    implements Evaluator
    Compute a curve containing the precision values for an outlier detection method.
    Since:
    0.5.0
    Author:
    Erich Schubert
    • Field Detail

      • LOG

        private static final Logging LOG
        The logger.
      • positiveClassName

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

        private int maxk
        Maximum value for k
    • Constructor Detail

      • OutlierPrecisionAtKCurve

        public OutlierPrecisionAtKCurve​(java.util.regex.Pattern positiveClassName,
                                        int maxk)
        Constructor.
        Parameters:
        positiveClassName - Pattern to recognize outliers
        maxk - Maximum value for k
    • Method Detail

      • 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.
      • computePrecisionResult

        private XYCurve computePrecisionResult​(int size,
                                               SetDBIDs positiveids,
                                               DBIDs order)