O
- the type of DatabaseObjects handled by this AlgorithmD
- the type of Distance used by this Algorithm@Title(value="KNNWeight outlier detection") @Description(value="Outlier Detection based on the 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") public class KNNWeightOutlier<O,D extends NumberDistance<D,?>> extends AbstractDistanceBasedAlgorithm<O,D,OutlierResult> implements OutlierAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
KNNWeightOutlier.Parameterizer<O,D extends NumberDistance<D,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private int |
k
Holds the value of
K_ID . |
static OptionID |
K_ID
Parameter to specify the k nearest neighbor
|
static OptionID |
KNNQUERY_ID
The kNN query used.
|
private static Logging |
logger
The logger for this class.
|
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
KNNWeightOutlier(DistanceFunction<? super O,D> 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.
|
getDistanceFunction
makeParameterDistanceFunction, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging logger
public static final OptionID K_ID
public static final OptionID KNNQUERY_ID
private int k
K_ID
.public KNNWeightOutlier(DistanceFunction<? super O,D> distanceFunction, int k)
distanceFunction
- Distance functionk
- k Parameterpublic OutlierResult run(Database database, Relation<O> relation)
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<OutlierResult>