|
|
|||||||||
| 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.TopKOutlierScaling
public class TopKOutlierScaling

Outlier scaling function that only keeps the top k outliers.
| Nested Class Summary | |
|---|---|
static class |
TopKOutlierScaling.Parameterizer
Parameterization class. |
| Field Summary | |
|---|---|
private boolean |
binary
Do a binary decision |
static OptionID |
BINARY_ID
Parameter to specify the lambda value Key: -topk.binary
|
private double |
cutoff
The value we cut off at. |
private double |
ground
The "ground" value |
private int |
k
Number of outliers to keep. |
static OptionID |
K_ID
Parameter to specify the number of outliers to keep Key: -topk.k
|
private double |
max
The maximum value |
| Constructor Summary | |
|---|---|
TopKOutlierScaling(int k,
boolean binary)
Constructor. |
|
| 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. |
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 |
|---|
public static final OptionID K_ID
Key: -topk.k
public static final OptionID BINARY_ID
Key: -topk.binary
private int k
private boolean binary
private double cutoff
private double ground
private double max
| Constructor Detail |
|---|
public TopKOutlierScaling(int k,
boolean binary)
k - binary - | Method Detail |
|---|
public void prepare(OutlierResult or)
OutlierScalingFunction
prepare in interface OutlierScalingFunctionor - Outlier result to usepublic double getMax()
ScalingFunctionDouble.NaN or
Double.POSITIVE_INFINITY.
getMax in interface ScalingFunctionpublic double getMin()
ScalingFunctionDouble.NaN or
Double.NEGATIVE_INFINITY.
getMin in interface ScalingFunctionpublic double getScaled(double value)
ScalingFunction
getScaled in interface ScalingFunctionvalue - Original value
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||