|
|
|||||||||||||||||||||
| 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.
| Field Summary | |
|---|---|
private boolean |
binary
Do a binary decision |
private Flag |
BINARY_FLAG
Parameter to specify the lambda value Key: -topk.binary
|
static OptionID |
BINARY_ID
OptionID for BINARY_FLAG |
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
OptionID for K_PARAM |
private IntParameter |
K_PARAM
Parameter to specify the number of outliers to keep Key: -topk.k
|
private double |
max
The maximum value |
| Constructor Summary | |
|---|---|
TopKOutlierScaling(Parameterization config)
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. |
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 |
|---|
public static final OptionID K_ID
K_PARAM
private final IntParameter K_PARAM
Key: -topk.k
private int k
public static final OptionID BINARY_ID
BINARY_FLAG
private final Flag BINARY_FLAG
Key: -topk.binary
private boolean binary
private double cutoff
private double ground
private double max
| Constructor Detail |
|---|
public TopKOutlierScaling(Parameterization config)
Parameterizable
config - Parameterization| Method Detail |
|---|
public void prepare(Database<?> db,
Result result,
OutlierResult or)
OutlierScalingFunction
prepare in interface OutlierScalingFunctiondb - Database usedresult - Result objector - 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 | |||||||||||