Package elki.utilities.scaling.outlier
Class RankingPseudoOutlierScaling
- java.lang.Object
-
- elki.utilities.scaling.outlier.RankingPseudoOutlierScaling
-
- All Implemented Interfaces:
OutlierScaling,ScalingFunction
public class RankingPseudoOutlierScaling extends java.lang.Object implements OutlierScaling
This is a pseudo outlier scoring obtained by only considering the ranks of the objects. However, the ranks are not mapped linearly to scores, but using a normal distribution.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description RankingPseudoOutlierScaling()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetMax()Get maximum resulting value.doublegetMin()Get minimum resulting value.doublegetScaled(double value)Transform a given value using the scaling function.<A> voidprepare(A array, NumberArrayAdapter<?,A> adapter)Prepare is called once for each data set, before getScaled() will be called.voidprepare(OutlierResult or)Prepare is called once for each data set, before getScaled() will be called.
-
-
-
Method Detail
-
prepare
public void prepare(OutlierResult or)
Description copied from interface:OutlierScalingPrepare is called once for each data set, before getScaled() will be called. This function can be used to extract global parameters such as means, minimums or maximums from the outlier scores.- Specified by:
preparein interfaceOutlierScaling- Parameters:
or- Outlier result to use
-
prepare
public <A> void prepare(A array, NumberArrayAdapter<?,A> adapter)Description copied from interface:OutlierScalingPrepare is called once for each data set, before getScaled() will be called. This function can be used to extract global parameters such as means, minimums or maximums from the score array. The method using a fullOutlierResultis preferred, as it will allow access to the metadata.- Specified by:
preparein interfaceOutlierScaling- Parameters:
array- Data to processadapter- Array adapter
-
getMax
public double getMax()
Description copied from interface:ScalingFunctionGet maximum resulting value. May beDouble.NaNorDouble.POSITIVE_INFINITY.- Specified by:
getMaxin interfaceScalingFunction- Returns:
- Maximum resulting value.
-
getMin
public double getMin()
Description copied from interface:ScalingFunctionGet minimum resulting value. May beDouble.NaNorDouble.NEGATIVE_INFINITY.- Specified by:
getMinin interfaceScalingFunction- Returns:
- Minimum resulting value.
-
getScaled
public double getScaled(double value)
Description copied from interface:ScalingFunctionTransform a given value using the scaling function.- Specified by:
getScaledin interfaceScalingFunction- Parameters:
value- Original value- Returns:
- Scaled value
-
-