de.lmu.ifi.dbs.elki.algorithm.outlier.trivial
Class ByLabelOutlier

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<OutlierResult>
      extended by de.lmu.ifi.dbs.elki.algorithm.outlier.trivial.ByLabelOutlier
All Implemented Interfaces:
Algorithm, OutlierAlgorithm, InspectionUtilFrequentlyScanned, Parameterizable

public class ByLabelOutlier
extends AbstractAlgorithm<OutlierResult>
implements OutlierAlgorithm

Trivial algorithm that marks outliers by their label. Can be used as reference algorithm in comparisons.


Nested Class Summary
static class ByLabelOutlier.Parameterizer
          Parameterization class.
 
Field Summary
static String DEFAULT_PATTERN
          The default pattern to use.
private static Logging logger
          Our logger.
(package private)  Pattern pattern
          The pattern we match with.
 
Constructor Summary
ByLabelOutlier()
          Constructor.
ByLabelOutlier(Pattern pattern)
          Constructor.
 
Method Summary
 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)
          Runs the algorithm.
 OutlierResult run(Relation<?> relation)
          Run the algorithm
 
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm
makeParameterDistanceFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logging logger
Our logger.


DEFAULT_PATTERN

public static final String DEFAULT_PATTERN
The default pattern to use.

See Also:
Constant Field Values

pattern

final Pattern pattern
The pattern we match with.

Constructor Detail

ByLabelOutlier

public ByLabelOutlier(Pattern pattern)
Constructor.

Parameters:
pattern - Pattern to match with.

ByLabelOutlier

public ByLabelOutlier()
Constructor.

Method Detail

getInputTypeRestriction

public TypeInformation[] getInputTypeRestriction()
Description copied from class: AbstractAlgorithm
Get the input type restriction used for negotiating the data query.

Specified by:
getInputTypeRestriction in interface Algorithm
Specified by:
getInputTypeRestriction in class AbstractAlgorithm<OutlierResult>
Returns:
Type restriction

run

public OutlierResult run(Database database)
Description copied from interface: Algorithm
Runs the algorithm.

Specified by:
run in interface Algorithm
Specified by:
run in interface OutlierAlgorithm
Overrides:
run in class AbstractAlgorithm<OutlierResult>
Parameters:
database - the database to run the algorithm on
Returns:
the Result computed by this algorithm

run

public OutlierResult run(Relation<?> relation)
Run the algorithm

Parameters:
relation - Relation to process.
Returns:
Result

getLogger

protected Logging getLogger()
Description copied from class: AbstractAlgorithm
Get the (STATIC) logger for this class.

Specified by:
getLogger in class AbstractAlgorithm<OutlierResult>
Returns:
the static logger

Release 0.4.0 (2011-09-20_1324)