public class OnlineLOF<O> extends FlexibleLOF<O>
LOF
Algorithm, supports insertions and
removals.
BUG: this currently does not appear to work.Modifier and Type | Class and Description |
---|---|
private class |
OnlineLOF.LOFKNNListener
Encapsulates a listener for changes of kNNs used in the online LOF
algorithm.
|
static class |
OnlineLOF.Parameterizer<O>
Parameterization class.
|
FlexibleLOF.LOFResult<O>
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The logger for this class.
|
kreach, krefer, reachabilityDistanceFunction, referenceDistanceFunction
Constructor and Description |
---|
OnlineLOF(int krefer,
int kreach,
DistanceFunction<? super O> neighborhoodDistanceFunction,
DistanceFunction<? super O> reachabilityDistanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private Pair<Pair<KNNQuery<O>,KNNQuery<O>>,Pair<RKNNQuery<O>,RKNNQuery<O>>> |
getKNNAndRkNNQueries(Database database,
Relation<O> relation,
StepProgress stepprog)
Get the kNN and rkNN queries for the algorithm.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
OutlierResult |
run(Database database,
Relation<O> relation)
Performs the Generalized LOF_SCORE algorithm on the given database by
calling
#doRunInTime(Database) and adds a OnlineLOF.LOFKNNListener to
the preprocessors. |
computeLOFs, computeLRDs, doRunInTime, getInputTypeRestriction
makeParameterDistanceFunction, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging LOG
public OnlineLOF(int krefer, int kreach, DistanceFunction<? super O> neighborhoodDistanceFunction, DistanceFunction<? super O> reachabilityDistanceFunction)
krefer
- The number of neighbors for referencekreach
- The number of neighbors for reachability distanceneighborhoodDistanceFunction
- the neighborhood distance functionreachabilityDistanceFunction
- the reachability distance functionpublic OutlierResult run(Database database, Relation<O> relation)
#doRunInTime(Database)
and adds a OnlineLOF.LOFKNNListener
to
the preprocessors.run
in class FlexibleLOF<O>
database
- Database to queryrelation
- Data to processprivate Pair<Pair<KNNQuery<O>,KNNQuery<O>>,Pair<RKNNQuery<O>,RKNNQuery<O>>> getKNNAndRkNNQueries(Database database, Relation<O> relation, StepProgress stepprog)
relation
- Datastepprog
- Progress loggerprotected Logging getLogger()
AbstractAlgorithm
getLogger
in class FlexibleLOF<O>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.