de.lmu.ifi.dbs.elki.utilities.scaling.outlier
Class MinusLogStandardDeviationScaling
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.scaling.outlier.StandardDeviationScaling
de.lmu.ifi.dbs.elki.utilities.scaling.outlier.MinusLogStandardDeviationScaling
- All Implemented Interfaces:
- Parameterizable, OutlierScalingFunction, ScalingFunction
public class MinusLogStandardDeviationScaling
- extends StandardDeviationScaling
- implements OutlierScalingFunction
Scaling that can map arbitrary values to a probability in the range of [0:1].
Transformation is done using the formula max(0, erf(lambda * (x - mean) /
(stddev * sqrt(2))))
Where mean can be fixed to a given value, and stddev is then computed against
this mean.
- Author:
- Erich Schubert
Method Summary |
double |
getScaled(double value)
Transform a given value using the scaling function. |
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 |
MinusLogStandardDeviationScaling
public MinusLogStandardDeviationScaling(Parameterization config)
- Constructor, adhering to
Parameterizable
- Parameters:
config
- Parameterization
getScaled
public double getScaled(double value)
- Description copied from interface:
ScalingFunction
- Transform a given value using the scaling function.
- Specified by:
getScaled
in interface ScalingFunction
- Overrides:
getScaled
in class StandardDeviationScaling
- Parameters:
value
- Original value
- Returns:
- Scaled value
prepare
public void prepare(Database<?> db,
Result result,
OutlierResult or)
- Description copied from interface:
OutlierScalingFunction
- Prepare 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 Database, Result or Annotation.
- Specified by:
prepare
in interface OutlierScalingFunction
- Overrides:
prepare
in class StandardDeviationScaling
- Parameters:
db
- Database usedresult
- Result objector
- Outlier result to use