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 DoubleDataStore |
computeOutlierScores(Database database,
Relation<O> relation,
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.
|
getDistanceFunction
getLogger, makeParameterDistanceFunction, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
public 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)
database
- Database to processrelation
- Relation to processprotected abstract DoubleDataStore computeOutlierScores(Database database, Relation<O> relation, D d)
database
- Databaserelation
- Relationd
- distancepublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>