
R - the result typepublic abstract class AbstractAlgorithm<R extends Result> extends Object implements Algorithm
This class serves also as a model of implementing an algorithm within this framework. Any Algorithm that makes use of these flags may extend this class.
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractAlgorithm()Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract TypeInformation[] | getInputTypeRestriction()Get the input type restriction used for negotiating the data query. | 
| protected abstract Logging | getLogger()Get the (STATIC) logger for this class. | 
| static <F extends DistanceFunction<?,?>>  | makeParameterDistanceFunction(Class<?> defaultDistanceFunction,
                             Class<?> restriction)Make a default distance function configuration option. | 
| R | run(Database database)Runs the algorithm. | 
public R run(Database database)
Algorithmpublic abstract TypeInformation[] getInputTypeRestriction()
getInputTypeRestriction in interface Algorithmprotected abstract Logging getLogger()
public static <F extends DistanceFunction<?,?>> ObjectParameter<F> makeParameterDistanceFunction(Class<?> defaultDistanceFunction, Class<?> restriction)
F - Distance function typedefaultDistanceFunction - Default valuerestriction - Restriction class