Package elki.result.outlier
Class ProbabilisticOutlierScore
- java.lang.Object
-
- elki.result.outlier.ProbabilisticOutlierScore
-
- All Implemented Interfaces:
OutlierScoreMeta
public class ProbabilisticOutlierScore extends java.lang.Object implements OutlierScoreMeta
Outlier score that is a probability value in the range 0.0 - 1.0 But the baseline may be different from 0.0!- Since:
- 0.3
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private double
actualMaximum
Actual maximum seen, if given by the algorithm.private double
actualMinimum
Actual minimum seen, if given by the algorithm.private double
theoreticalBaseline
Theoretical baseline specified by the algorithm.
-
Constructor Summary
Constructors Constructor Description ProbabilisticOutlierScore()
Default constructor.ProbabilisticOutlierScore(double theoreticalBaseline)
Constructor with baseline only.ProbabilisticOutlierScore(double actualMinimum, double actualMaximum)
Constructor with actual values, and a baseline of 0.0ProbabilisticOutlierScore(double actualMinimum, double actualMaximum, double theoreticalBaseline)
Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getActualMaximum()
Get the actual maximum of the value range.double
getActualMinimum()
Get the actual minimum of the value range.java.lang.String
getLongName()
java.lang.String
getShortName()
double
getTheoreticalBaseline()
Get the theoretical baseline of the value range.double
getTheoreticalMaximum()
Get the theoretical maximum of the value range.double
getTheoreticalMinimum()
Get the theoretical minimum of the value range.double
normalizeScore(double value)
Return a normalized value of the outlier score.
-
-
-
Field Detail
-
actualMinimum
private double actualMinimum
Actual minimum seen, if given by the algorithm.
-
actualMaximum
private double actualMaximum
Actual maximum seen, if given by the algorithm.
-
theoreticalBaseline
private double theoreticalBaseline
Theoretical baseline specified by the algorithm. Defaults to 0.0 in short constructor.
-
-
Constructor Detail
-
ProbabilisticOutlierScore
public ProbabilisticOutlierScore()
Default constructor. No actual values, Baseline 0.0
-
ProbabilisticOutlierScore
public ProbabilisticOutlierScore(double theoreticalBaseline)
Constructor with baseline only.- Parameters:
theoreticalBaseline
- Baseline
-
ProbabilisticOutlierScore
public ProbabilisticOutlierScore(double actualMinimum, double actualMaximum)
Constructor with actual values, and a baseline of 0.0- Parameters:
actualMinimum
- actual minimum seenactualMaximum
- actual maximum seen
-
ProbabilisticOutlierScore
public ProbabilisticOutlierScore(double actualMinimum, double actualMaximum, double theoreticalBaseline)
Full constructor.- Parameters:
actualMinimum
- actual minimum seenactualMaximum
- actual maximum seentheoreticalBaseline
- theoretical baseline
-
-
Method Detail
-
getActualMinimum
public double getActualMinimum()
Description copied from interface:OutlierScoreMeta
Get the actual minimum of the value range.- Specified by:
getActualMinimum
in interfaceOutlierScoreMeta
- Returns:
- minimum or
Double.NaN
-
getActualMaximum
public double getActualMaximum()
Description copied from interface:OutlierScoreMeta
Get the actual maximum of the value range.- Specified by:
getActualMaximum
in interfaceOutlierScoreMeta
- Returns:
- maximum or
Double.NaN
-
getTheoreticalBaseline
public double getTheoreticalBaseline()
Description copied from interface:OutlierScoreMeta
Get the theoretical baseline of the value range. It will be common to seeDouble.POSITIVE_INFINITY
here.- Specified by:
getTheoreticalBaseline
in interfaceOutlierScoreMeta
- Returns:
- theoretical baseline or
Double.NaN
-
getTheoreticalMaximum
public double getTheoreticalMaximum()
Description copied from interface:OutlierScoreMeta
Get the theoretical maximum of the value range. This value may beDouble.NEGATIVE_INFINITY
orDouble.NaN
.- Specified by:
getTheoreticalMaximum
in interfaceOutlierScoreMeta
- Returns:
- theoretical maximum or
Double.NaN
-
getTheoreticalMinimum
public double getTheoreticalMinimum()
Description copied from interface:OutlierScoreMeta
Get the theoretical minimum of the value range.- Specified by:
getTheoreticalMinimum
in interfaceOutlierScoreMeta
- Returns:
- theoretical minimum or
Double.NaN
-
normalizeScore
public double normalizeScore(double value)
Description copied from interface:OutlierScoreMeta
Return a normalized value of the outlier score.- Specified by:
normalizeScore
in interfaceOutlierScoreMeta
- Parameters:
value
- outlier score- Returns:
- Normalized value (in 0.0-1.0)
-
getLongName
public java.lang.String getLongName()
-
getShortName
public java.lang.String getShortName()
-
-