public class ExternalDoubleOutlierScore extends AbstractAlgorithm<OutlierResult> implements OutlierAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
ExternalDoubleOutlierScore.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
static String |
COMMENT
The comment character.
|
private File |
file
The file to be reparsed
|
static String |
ID_PATTERN_DEFAULT
The default pattern for matching ID lines.
|
private Pattern |
idpattern
object id pattern
|
private boolean |
inverted
Inversion flag.
|
private static Logging |
logger
The logger for this class.
|
private ScalingFunction |
scaling
Scaling function to use
|
private Pattern |
scorepattern
object score pattern
|
Constructor and Description |
---|
ExternalDoubleOutlierScore(File file,
Pattern idpattern,
Pattern scorepattern,
boolean inverted,
ScalingFunction scaling)
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<?> relation)
Run the algorithm.
|
makeParameterDistanceFunction, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging logger
public static final String COMMENT
public static final String ID_PATTERN_DEFAULT
private File file
private Pattern idpattern
private Pattern scorepattern
private ScalingFunction scaling
private boolean inverted
public ExternalDoubleOutlierScore(File file, Pattern idpattern, Pattern scorepattern, boolean inverted, ScalingFunction scaling)
file
- File to loadidpattern
- Pattern to match IDsscorepattern
- Pattern to match scores withinverted
- Inversion flagscaling
- Score scaling functionpublic OutlierResult run(Database database, Relation<?> relation)
database
- Database to userelation
- Relation to useprotected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<OutlierResult>
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>