de.lmu.ifi.dbs.elki.algorithm
Class MaterializeDistances<O,D extends NumberDistance<D,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<R>
de.lmu.ifi.dbs.elki.algorithm.AbstractDistanceBasedAlgorithm<O,D,CollectionResult<CTriple<DBID,DBID,Double>>>
de.lmu.ifi.dbs.elki.algorithm.MaterializeDistances<O,D>
- Type Parameters:
O
- Object typeD
- Distance type
- All Implemented Interfaces:
- Algorithm, InspectionUtilFrequentlyScanned, Parameterizable
@Title(value="MaterializeDistances")
@Description(value="Materialize all distances in the data set to use as cached/precalculated data.")
public class MaterializeDistances<O,D extends NumberDistance<D,?>>
- extends AbstractDistanceBasedAlgorithm<O,D,CollectionResult<CTriple<DBID,DBID,Double>>>
Algorithm to materialize all the distances in a data set.
The result can then be used with the DoubleDistanceParser and
MultipleFileInput to use cached distances.
Symmetry is assumed.
Field Summary |
private static Logging |
logger
The logger for this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final Logging logger
- The logger for this class.
MaterializeDistances
public MaterializeDistances(DistanceFunction<? super O,D> distanceFunction)
- Constructor.
- Parameters:
distanceFunction
- Parameterization
run
public CollectionResult<CTriple<DBID,DBID,Double>> run(Database database,
Relation<O> relation)
- Iterates over all points in the database.
getLogger
protected Logging getLogger()
- Description copied from class:
AbstractAlgorithm
- Get the (STATIC) logger for this class.
- Specified by:
getLogger
in class AbstractAlgorithm<CollectionResult<CTriple<DBID,DBID,Double>>>
- Returns:
- the static logger
getInputTypeRestriction
public TypeInformation[] getInputTypeRestriction()
- Description copied from class:
AbstractAlgorithm
- Get the input type restriction used for negotiating the data query.
- Specified by:
getInputTypeRestriction
in interface Algorithm
- Specified by:
getInputTypeRestriction
in class AbstractAlgorithm<CollectionResult<CTriple<DBID,DBID,Double>>>
- Returns:
- Type restriction