|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.scaling.outlier.MultiplicativeInverseScaling
@Reference(authors="H.-P. Kriegel, P. Kr\u00f6ger, E. Schubert, A. Zimek", title="Interpreting and Unifying Outlier Scores", booktitle="Proc. 11th SIAM International Conference on Data Mining (SDM), Mesa, AZ, 2011", url="http://www.dbs.ifi.lmu.de/~zimek/publications/SDM2011/SDM11-outlier-preprint.pdf") public class MultiplicativeInverseScaling
Scaling function to invert values basically by computing 1/x, but in a variation that maps the values to the [0:1] interval and avoiding division by 0. The exact formula can be written as 1 / (value * max_{x!=0}(1 / abs(x))) = min_{x != 0}(abs(x)) / x with 1 / 0 := 1
Field Summary | |
---|---|
(package private) double |
scaleval
Scaling value, set by prepare(de.lmu.ifi.dbs.elki.result.outlier.OutlierResult) . |
Constructor Summary | |
---|---|
MultiplicativeInverseScaling()
Constructor, adhering to Parameterizable |
Method Summary | |
---|---|
double |
getMax()
Get maximum resulting value. |
double |
getMin()
Get minimum resulting value. |
double |
getScaled(double value)
Transform a given value using the scaling function. |
private static double |
getScaleValue(OutlierResult or)
Compute the scaling value in a linear scan over the annotation. |
void |
prepare(OutlierResult or)
Prepare is called once for each data set, before getScaled() will be called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
double scaleval
prepare(de.lmu.ifi.dbs.elki.result.outlier.OutlierResult)
.
Constructor Detail |
---|
public MultiplicativeInverseScaling()
Parameterizable
Method Detail |
---|
public double getScaled(double value)
ScalingFunction
getScaled
in interface ScalingFunction
value
- Original value
public void prepare(OutlierResult or)
OutlierScalingFunction
prepare
in interface OutlierScalingFunction
or
- Outlier result to useprivate static double getScaleValue(OutlierResult or)
or
- Outlier result
public double getMin()
ScalingFunction
Double.NaN
or
Double.NEGATIVE_INFINITY
.
getMin
in interface ScalingFunction
public double getMax()
ScalingFunction
Double.NaN
or
Double.POSITIVE_INFINITY
.
getMax
in interface ScalingFunction
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |