O
- Object type@Reference(authors="V. Hautam\u00e4ki, I. K\u00e4rkk\u00e4inen, P. Fr\u00e4nti", title="Outlier detection using k-nearest neighbour graph", booktitle="Proc. 17th Int. Conf. Pattern Recognition (ICPR 2004)", url="https://doi.org/10.1109/ICPR.2004.1334558", bibkey="DBLP:conf/icpr/HautamakiKF04") public class ODIN<O> extends AbstractDistanceBasedAlgorithm<O,OutlierResult> implements OutlierAlgorithm
This is a curried version: instead of using a threshold T to obtain a binary decision, we use the computed value as outlier score.
Reference:
V. Hautamäki and I. Kärkkäinen and P. Fränti
Outlier detection using k-nearest neighbour graph
Proc. 17th Int. Conf. Pattern Recognition (ICPR 2004)
Modifier and Type | Class and Description |
---|---|
static class |
ODIN.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) int |
k
Number of neighbors for kNN graph.
|
private static Logging |
LOG
Class logger.
|
ALGORITHM_ID
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
ODIN(DistanceFunction<? super O> distanceFunction,
int k)
Constructor.
|
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)
Run the ODIN algorithm
Tutorial note: the signature of this method depends on the types
that we requested in the
getInputTypeRestriction() method. |
getDistanceFunction
run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging LOG
int k
public ODIN(DistanceFunction<? super O> distanceFunction, int k)
distanceFunction
- Distance functionk
- k parameterpublic OutlierResult run(Database database, Relation<O> relation)
getInputTypeRestriction()
method. Here we
requested a single relation of type O
, the data type of our
distance function.database
- Database to run on.relation
- Relation to process.public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<OutlierResult>
Copyright © 2019 ELKI Development Team. License information.