de.lmu.ifi.dbs.elki.algorithm
Class MaterializeDistances<V extends RealVector<V,?>,D extends NumberDistance<D,N>,N extends Number>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<O,R>
de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm<V,D,CollectionResult<CTriple<Integer,Integer,Double>>>
de.lmu.ifi.dbs.elki.algorithm.MaterializeDistances<V,D,N>
- Type Parameters:
V
- Vector type
- All Implemented Interfaces:
- Algorithm<V,CollectionResult<CTriple<Integer,Integer,Double>>>, Parameterizable
public class MaterializeDistances<V extends RealVector<V,?>,D extends NumberDistance<D,N>,N extends Number>
- extends DistanceBasedAlgorithm<V,D,CollectionResult<CTriple<Integer,Integer,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.
- Author:
- Erich Schubert
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
result
private CollectionResult<CTriple<Integer,Integer,Double>> result
MaterializeDistances
public MaterializeDistances()
- Empty constructor. Nothing to do.
runInTime
protected CollectionResult<CTriple<Integer,Integer,Double>> runInTime(Database<V> database)
throws IllegalStateException
- Iterates over all points in the database.
- Specified by:
runInTime
in class AbstractAlgorithm<V extends RealVector<V,?>,CollectionResult<CTriple<Integer,Integer,Double>>>
- Parameters:
database
- the database to run the algorithm on
- Returns:
- the Result computed by this algorithm
- Throws:
IllegalStateException
- if the algorithm has not been initialized
properly (e.g. the setParameters(String[]) method has been failed
to be called).
getDescription
public Description getDescription()
- Describe the algorithm and it's use.
- Returns:
- a description of the algorithm
getResult
public CollectionResult<CTriple<Integer,Integer,Double>> getResult()
- Return a result object
- Returns:
- the result of the algorithm