O
- Object type@Title(value="MaterializeDistances") @Description(value="Materialize all distances in the data set to use as cached/precalculated data.") public class MaterializeDistances<O> extends AbstractDistanceBasedAlgorithm<O,CollectionResult<MaterializeDistances.DistanceEntry>>
Modifier and Type | Class and Description |
---|---|
static class |
MaterializeDistances.DistanceEntry
Object representing a pairwise distance.
|
static class |
MaterializeDistances.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The logger for this class.
|
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
MaterializeDistances(DistanceFunction<? super O> distanceFunction)
Constructor.
|
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.
|
CollectionResult<MaterializeDistances.DistanceEntry> |
run(Database database,
Relation<O> relation)
Iterates over all points in the database.
|
getDistanceFunction
makeParameterDistanceFunction, run
private static final Logging LOG
public MaterializeDistances(DistanceFunction<? super O> distanceFunction)
distanceFunction
- Parameterizationpublic CollectionResult<MaterializeDistances.DistanceEntry> run(Database database, Relation<O> relation)
database
- Database to processrelation
- Relation to processprotected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<CollectionResult<MaterializeDistances.DistanceEntry>>
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<CollectionResult<MaterializeDistances.DistanceEntry>>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.