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.positive
specifies 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 class
ComputeOutlierHistogram.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private int
bins
Number of binsprivate java.util.regex.Pattern
positiveClassName
Stores the "positive" class.private ScalingFunction
scaling
Scaling function to useprivate boolean
splitfreq
Flag 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 HistogramResult
evaluateOutlierResult(Database database, OutlierResult or)
Evaluate a single outlier result as histogram.void
processNewResult(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:ResultProcessor
Process a result.- Specified by:
processNewResult
in interfaceResultProcessor
- Parameters:
result
- Newly added result subtree.
-
-