|
||||||||||
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<Result> de.lmu.ifi.dbs.elki.algorithm.DummyAlgorithm<O>
O
- Vector type@Title(value="Dummy Algorithm") @Description(value="The algorithm executes a euclidena 10NN query on all data points, and can be used in unit testing") public class DummyAlgorithm<O extends NumberVector<?,?>>
Dummy Algorithm, which just iterates over all points once, doing a 10NN query
each. Useful in testing e.g. index structures and as template for custom
algorithms. If you are looking for an algorithm that does nothing,
you must use NullAlgorithm
instead. While this algorithm doesn't produce a result, it
still performs rather expensive operations.
Field Summary | |
---|---|
private static Logging |
logger
The logger for this class. |
Constructor Summary | |
---|---|
DummyAlgorithm()
Constructor, adhering to Parameterizable |
Method Summary | |
---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query. |
protected Logging |
getLogger()
Get the (STATIC) logger for this class. |
Result |
run(Database database,
Relation<O> relation)
Run the algorithm. |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
---|
makeParameterDistanceFunction, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Logging logger
Constructor Detail |
---|
public DummyAlgorithm()
Parameterizable
Method Detail |
---|
public Result run(Database database, Relation<O> relation)
database
- Databaserelation
- Relation
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<Result>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<Result>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |