
public class TrivialGeneratedOutlier extends AbstractAlgorithm<OutlierResult> implements OutlierAlgorithm
| Modifier and Type | Class and Description | 
|---|---|
| static class  | TrivialGeneratedOutlier.ParameterizerParameterization class. | 
| Modifier and Type | Field and Description | 
|---|---|
| (package private) double | expectExpected share of outliers. | 
| static OptionID | EXPECT_IDExpected share of outliers | 
| private static Logging | LOGClass logger | 
| Constructor and Description | 
|---|
| TrivialGeneratedOutlier()Constructor. | 
| TrivialGeneratedOutlier(double expect)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<Model> models,
   Relation<NumberVector<?>> vecs,
   Relation<?> labels)Run the algorithm | 
makeParameterDistanceFunctionprivate static final Logging LOG
public static final OptionID EXPECT_ID
double expect
public TrivialGeneratedOutlier(double expect)
expect - Expected share of outlierspublic TrivialGeneratedOutlier()
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithmgetInputTypeRestriction in interface AlgorithmgetInputTypeRestriction in class AbstractAlgorithm<OutlierResult>public OutlierResult run(Database database)
Algorithmrun in interface Algorithmrun in interface OutlierAlgorithmrun in class AbstractAlgorithm<OutlierResult>database - the database to run the algorithm onpublic OutlierResult run(Relation<Model> models, Relation<NumberVector<?>> vecs, Relation<?> labels)
models - Model relationvecs - Vector relationlabels - Label relationprotected Logging getLogger()
AbstractAlgorithmgetLogger in class AbstractAlgorithm<OutlierResult>