Package elki.evaluation.outlier
Class ComputeOutlierHistogram
- java.lang.Object
-
- elki.evaluation.outlier.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.positivespecifies the class label of "positive" hits.- Since:
- 0.3
- Author:
- Lisa Reichert, Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComputeOutlierHistogram.ParParameterization class.
-
Field Summary
Fields Modifier and Type Field Description private intbinsNumber of binsprivate java.util.regex.PatternpositiveClassNameStores the "positive" class.private ScalingFunctionscalingScaling function to useprivate booleansplitfreqFlag to make split frequencies
-
Constructor Summary
Constructors Constructor Description ComputeOutlierHistogram(java.util.regex.Pattern positive_class_name, int bins, ScalingFunction scaling, boolean splitfreq)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HistogramResultevaluateOutlierResult(Database database, OutlierResult or)Evaluate a single outlier result as histogram.voidprocessNewResult(java.lang.Object result)Process a result.
-
-
-
Field Detail
-
positiveClassName
private java.util.regex.Pattern positiveClassName
Stores the "positive" class.
-
bins
private int bins
Number of bins
-
scaling
private ScalingFunction scaling
Scaling function to use
-
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 namebins- Binsscaling- Scalingsplitfreq- 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 processor- Outlier result- Returns:
- Result
-
processNewResult
public void processNewResult(java.lang.Object result)
Description copied from interface:ResultProcessorProcess a result.- Specified by:
processNewResultin interfaceResultProcessor- Parameters:
result- Newly added result subtree.
-
-