Package elki
Class Algorithm.Utils
- java.lang.Object
-
- elki.Algorithm.Utils
-
- Enclosing interface:
- Algorithm
public static final class Algorithm.Utils extends java.lang.Object
Shared functionality- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static OptionID
ALGORITHM_ID
Parameter to specify the algorithm to run.static OptionID
DISTANCE_FUNCTION_ID
OptionID for the distance function.
-
Constructor Summary
Constructors Modifier Constructor Description private
Utils()
Static utility class.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
autorun(Algorithm a, 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()
.
-
-
-
Method Detail
-
autorun
public static java.lang.Object autorun(Algorithm a, 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()
.- Parameters:
a
- Algorithm to run ondatabase
- the database to run the algorithm on- Returns:
- the Result computed by this algorithm
-
-