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, run
private static final Logging logger
public DummyAlgorithm()
Parameterizable
public Result run(Database database, Relation<O> relation)
database
- Databaserelation
- Relationpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<Result>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<Result>