public class ByLabelOutlier extends AbstractAlgorithm<OutlierResult> implements OutlierAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
ByLabelOutlier.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PATTERN
The default pattern to use.
|
private static Logging |
LOG
Our logger.
|
(package private) Pattern |
pattern
The pattern we match with.
|
Constructor and Description |
---|
ByLabelOutlier()
Constructor.
|
ByLabelOutlier(Pattern pattern)
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)
Runs the algorithm.
|
OutlierResult |
run(Relation<?> relation)
Run the algorithm
|
makeParameterDistanceFunction
private static final Logging LOG
public static final String DEFAULT_PATTERN
final Pattern pattern
public ByLabelOutlier(Pattern pattern)
pattern
- Pattern to match with.public ByLabelOutlier()
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>
public OutlierResult run(Database database)
Algorithm
run
in interface Algorithm
run
in interface OutlierAlgorithm
run
in class AbstractAlgorithm<OutlierResult>
database
- the database to run the algorithm onpublic OutlierResult run(Relation<?> relation)
relation
- Relation to process.protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<OutlierResult>