
O - the type of DatabaseObjects handled by this Algorithm@Title(value="KNNWeight outlier detection") @Description(value="Outlier detection based on the sum of distances of an object to its k nearest neighbors.") @Reference(authors="F. Angiulli, C. Pizzuti", title="Fast Outlier Detection in High Dimensional Spaces", booktitle="Proc. European Conference on Principles of Knowledge Discovery and Data Mining (PKDD\'02), Helsinki, Finland, 2002", url="http://dx.doi.org/10.1007/3-540-45681-3_2") @Alias(value={"de.lmu.ifi.dbs.elki.algorithm.outlier.KNNWeightOutlier","knnw"}) public class KNNWeightOutlier<O> extends AbstractDistanceBasedAlgorithm<O,OutlierResult> implements OutlierAlgorithm
F. Angiulli, C. Pizzuti:
Fast Outlier Detection in High Dimensional Spaces.
In: Proc. European Conference on Principles of Knowledge Discovery and Data
Mining (PKDD'02), Helsinki, Finland, 2002.
| Modifier and Type | Class and Description |
|---|---|
static class |
KNNWeightOutlier.Parameterizer<O>
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
private int |
k
Holds the number of nearest neighbors to query (excluding the query point!)
|
private static Logging |
LOG
The logger for this class.
|
DISTANCE_FUNCTION_ID| Constructor and Description |
|---|
KNNWeightOutlier(DistanceFunction<? super O> distanceFunction,
int k)
Constructor with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
OutlierResult |
run(Database database,
Relation<O> relation)
Runs the algorithm in the timed evaluation part.
|
getDistanceFunctionmakeParameterDistanceFunction, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunprivate static final Logging LOG
private int k
public KNNWeightOutlier(DistanceFunction<? super O> distanceFunction, int k)
distanceFunction - Distance functionk - k Parameter (not including query point!)public OutlierResult run(Database database, Relation<O> relation)
database - Database contextrelation - Data relationpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithmgetInputTypeRestriction in interface AlgorithmgetInputTypeRestriction in class AbstractAlgorithm<OutlierResult>protected Logging getLogger()
AbstractAlgorithmgetLogger in class AbstractAlgorithm<OutlierResult>Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.