|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<R>
R
- the result typepublic abstract class AbstractAlgorithm<R extends Result>
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.
Constructor Summary | |
---|---|
protected |
AbstractAlgorithm()
Constructor. |
Method Summary | ||
---|---|---|
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
|
makeParameterDistanceFunction(Class<?> defaultDistanceFunction,
Class<?> restriction)
Make a default distance function configuration option |
|
R |
run(Database database)
Runs the algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractAlgorithm()
Method Detail |
---|
public R run(Database database)
Algorithm
run
in interface Algorithm
database
- the database to run the algorithm on
public abstract TypeInformation[] getInputTypeRestriction()
getInputTypeRestriction
in interface Algorithm
protected abstract Logging getLogger()
public static <F extends DistanceFunction<?,?>> ObjectParameter<F> makeParameterDistanceFunction(Class<?> defaultDistanceFunction, Class<?> restriction)
F
- Distance function typedefaultDistanceFunction
- Default valuerestriction
- Restriction class
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |