|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.scaling.outlier.MultiplicativeInverseScaling
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.database.Database>, de.lmu.ifi.dbs.elki.result.Result, 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(Database<?> db,
OutlierResult or)
Compute the scaling value in a linear scan over the annotation. |
void |
prepare(Database<?> db,
Result result,
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.database.Database>, de.lmu.ifi.dbs.elki.result.Result, de.lmu.ifi.dbs.elki.result.outlier.OutlierResult).
| Constructor Detail |
|---|
public MultiplicativeInverseScaling()
Parameterizable
| Method Detail |
|---|
public double getScaled(double value)
ScalingFunction
getScaled in interface ScalingFunctionvalue - Original value
public void prepare(Database<?> db,
Result result,
OutlierResult or)
OutlierScalingFunction
prepare in interface OutlierScalingFunctiondb - Database usedresult - Result objector - Outlier result to use
private static double getScaleValue(Database<?> db,
OutlierResult or)
db - Databaseor - Outlier result
public double getMin()
ScalingFunctionDouble.NaN or Double.NEGATIVE_INFINITY.
getMin in interface ScalingFunctionpublic double getMax()
ScalingFunctionDouble.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 | |||||||||||