
O - the type of DatabaseObjects handled by this AlgorithmD - the type of Distance used by this Algorithmpublic abstract class AbstractDBOutlier<O,D extends Distance<D>> extends AbstractDistanceBasedAlgorithm<O,D,OutlierResult> implements OutlierAlgorithm
Reference: E.M. Knorr, R. T. Ng: Algorithms for Mining Distance-Based Outliers in Large Datasets, In: Procs Int. Conf. on Very Large Databases (VLDB'98), New York, USA, 1998.
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDBOutlier.Parameterizer<O,D extends Distance<D>>
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
private D |
d
Holds the value of
D_ID. |
static OptionID |
D_ID
Parameter to specify the size of the D-neighborhood
|
DISTANCE_FUNCTION_ID| Constructor and Description |
|---|
AbstractDBOutlier(DistanceFunction<? super O,D> distanceFunction,
D d)
Constructor with actual parameters.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract DataStore<Double> |
computeOutlierScores(Database database,
DistanceQuery<O,D> distFunc,
D d)
computes an outlier score for each object of the database.
|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
OutlierResult |
run(Database database,
Relation<O> relation)
Runs the algorithm in the timed evaluation part.
|
getDistanceFunctiongetLogger, makeParameterDistanceFunction, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunpublic static final OptionID D_ID
public AbstractDBOutlier(DistanceFunction<? super O,D> distanceFunction, D d)
distanceFunction - distance function to used - d valuepublic OutlierResult run(Database database, Relation<O> relation) throws IllegalStateException
IllegalStateExceptionprotected abstract DataStore<Double> computeOutlierScores(Database database, DistanceQuery<O,D> distFunc, D d)
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithmgetInputTypeRestriction in interface AlgorithmgetInputTypeRestriction in class AbstractAlgorithm<OutlierResult>