Package elki.outlier.meta
Class RescaleMetaOutlierAlgorithm
- java.lang.Object
-
- elki.outlier.meta.RescaleMetaOutlierAlgorithm
-
- All Implemented Interfaces:
Algorithm
,OutlierAlgorithm
public class RescaleMetaOutlierAlgorithm extends java.lang.Object implements OutlierAlgorithm
Scale another outlier score using the given scaling function.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RescaleMetaOutlierAlgorithm.Par
Parameterization class-
Nested classes/interfaces inherited from interface elki.Algorithm
Algorithm.Utils
-
-
Field Summary
Fields Modifier and Type Field Description private Algorithm
algorithm
Holds the algorithm to run.private ScalingFunction
scaling
Scaling function to use
-
Constructor Summary
Constructors Constructor Description RescaleMetaOutlierAlgorithm(Algorithm algorithm, ScalingFunction scaling)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutlierResult
autorun(Database database)
Try to auto-run the algorithm on a database by calling a method calledrun
, with an optionalDatabase
first, and with data relations as specified byAlgorithm.getInputTypeRestriction()
.TypeInformation[]
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.private OutlierResult
getOutlierResult(java.lang.Object result)
Find an OutlierResult to work with.
-
-
-
Field Detail
-
algorithm
private Algorithm algorithm
Holds the algorithm to run.
-
scaling
private ScalingFunction scaling
Scaling function to use
-
-
Constructor Detail
-
RescaleMetaOutlierAlgorithm
public RescaleMetaOutlierAlgorithm(Algorithm algorithm, ScalingFunction scaling)
Constructor.- Parameters:
algorithm
- Inner algorithmscaling
- Scaling to apply.
-
-
Method Detail
-
autorun
public OutlierResult autorun(Database database)
Description copied from interface:Algorithm
Try to auto-run the algorithm on a database by calling a method calledrun
, with an optionalDatabase
first, and with data relations as specified byAlgorithm.getInputTypeRestriction()
.- Specified by:
autorun
in interfaceAlgorithm
- Specified by:
autorun
in interfaceOutlierAlgorithm
- Parameters:
database
- the database to run the algorithm on- Returns:
- the Result computed by this algorithm
-
getOutlierResult
private OutlierResult getOutlierResult(java.lang.Object result)
Find an OutlierResult to work with.- Parameters:
result
- Result object- Returns:
- Iterator to work with
-
getInputTypeRestriction
public TypeInformation[] getInputTypeRestriction()
Description copied from interface:Algorithm
Get the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestriction
in interfaceAlgorithm
- Returns:
- Type restriction
-
-