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 doubleactualMaximumActual maximum seen, if given by the algorithm.private doubleactualMinimumActual minimum seen, if given by the algorithm.private doubletheoreticalBaselineTheoretical 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 doublegetActualMaximum()Get the actual maximum of the value range.doublegetActualMinimum()Get the actual minimum of the value range.java.lang.StringgetLongName()java.lang.StringgetShortName()doublegetTheoreticalBaseline()Get the theoretical baseline of the value range.doublegetTheoreticalMaximum()Get the theoretical maximum of the value range.doublegetTheoreticalMinimum()Get the theoretical minimum of the value range.doublenormalizeScore(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:OutlierScoreMetaGet the actual minimum of the value range.- Specified by:
getActualMinimumin interfaceOutlierScoreMeta- Returns:
- minimum or
Double.NaN
-
getActualMaximum
public double getActualMaximum()
Description copied from interface:OutlierScoreMetaGet the actual maximum of the value range.- Specified by:
getActualMaximumin interfaceOutlierScoreMeta- Returns:
- maximum or
Double.NaN
-
getTheoreticalBaseline
public double getTheoreticalBaseline()
Description copied from interface:OutlierScoreMetaGet the theoretical baseline of the value range. It will be common to seeDouble.POSITIVE_INFINITYhere.- Specified by:
getTheoreticalBaselinein interfaceOutlierScoreMeta- Returns:
- theoretical baseline or
Double.NaN
-
getTheoreticalMaximum
public double getTheoreticalMaximum()
Description copied from interface:OutlierScoreMetaGet the theoretical maximum of the value range. This value may beDouble.NEGATIVE_INFINITYorDouble.NaN.- Specified by:
getTheoreticalMaximumin interfaceOutlierScoreMeta- Returns:
- theoretical maximum or
Double.NaN
-
getTheoreticalMinimum
public double getTheoreticalMinimum()
Description copied from interface:OutlierScoreMetaGet the theoretical minimum of the value range.- Specified by:
getTheoreticalMinimumin interfaceOutlierScoreMeta- Returns:
- theoretical minimum or
Double.NaN
-
normalizeScore
public double normalizeScore(double value)
Description copied from interface:OutlierScoreMetaReturn a normalized value of the outlier score.- Specified by:
normalizeScorein 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()
-
-