
O - Object typeD - Distance type@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>>>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MaterializeDistances.Parameterizer<O,D extends NumberDistance<D,?>>Parameterization class. | 
| Modifier and Type | Field and Description | 
|---|---|
| private static Logging | LOGThe logger for this class. | 
DISTANCE_FUNCTION_ID| Constructor and Description | 
|---|
| MaterializeDistances(DistanceFunction<? super O,D> 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<CTriple<DBID,DBID,Double>> | run(Database database,
   Relation<O> relation)Iterates over all points in the database. | 
getDistanceFunctionmakeParameterDistanceFunction, runprivate static final Logging LOG
public MaterializeDistances(DistanceFunction<? super O,D> distanceFunction)
distanceFunction - Parameterizationpublic CollectionResult<CTriple<DBID,DBID,Double>> run(Database database, Relation<O> relation)
database - Database to processrelation - Relation to processprotected Logging getLogger()
AbstractAlgorithmgetLogger in class AbstractAlgorithm<CollectionResult<CTriple<DBID,DBID,Double>>>public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithmgetInputTypeRestriction in interface AlgorithmgetInputTypeRestriction in class AbstractAlgorithm<CollectionResult<CTriple<DBID,DBID,Double>>>