
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<?,?>> extends AbstractAlgorithm<Result>
NullAlgorithm instead. While this algorithm doesn't produce a result, it
still performs rather expensive operations.| Modifier and Type | Field and Description |
|---|---|
private static Logging |
logger
The logger for this class.
|
| Constructor and Description |
|---|
DummyAlgorithm()
Constructor, adhering to
Parameterizable |
| Modifier and Type | Method and Description |
|---|---|
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.
|
makeParameterDistanceFunction, runprivate static final Logging logger
public DummyAlgorithm()
Parameterizablepublic Result run(Database database, Relation<O> relation)
database - Databaserelation - Relationpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithmgetInputTypeRestriction in interface AlgorithmgetInputTypeRestriction in class AbstractAlgorithm<Result>protected Logging getLogger()
AbstractAlgorithmgetLogger in class AbstractAlgorithm<Result>