|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<O,R>
de.lmu.ifi.dbs.elki.algorithm.DistanceBasedAlgorithm<O,D,R>
O - the type of DatabaseObjects handled by this AlgorithmD - the type of Distance used by this AlgorithmR - the type of result to retrieve from this Algorithmpublic abstract class DistanceBasedAlgorithm<O extends DatabaseObject,D extends Distance<D>,R extends Result>
Provides an abstract algorithm already setting the distance function.
| Field Summary | |
|---|---|
static OptionID |
DISTANCE_FUNCTION_ID
OptionID for DISTANCE_FUNCTION_PARAM |
protected ObjectParameter<DistanceFunction<O,D>> |
DISTANCE_FUNCTION_PARAM
Parameter to specify the distance function to determine the distance between database objects, must extend DistanceFunction. |
private DistanceFunction<O,D> |
distanceFunction
Holds the instance of the distance function specified by DISTANCE_FUNCTION_PARAM. |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
protected |
DistanceBasedAlgorithm(Parameterization config)
Constructor, adhering to Parameterizable |
| Method Summary | |
|---|---|
D |
getDistanceFactory()
Returns the distance we use. |
DistanceFunction<O,D> |
getDistanceFunction()
Returns the distanceFunction. |
| Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
|---|
isTime, isVerbose, run, runInTime, setTime, setVerbose |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final OptionID DISTANCE_FUNCTION_ID
DISTANCE_FUNCTION_PARAM
protected final ObjectParameter<DistanceFunction<O extends DatabaseObject,D extends Distance<D>>> DISTANCE_FUNCTION_PARAM
DistanceFunction.
Key: -algorithm.distancefunction
Default value:
EuclideanDistanceFunction
private DistanceFunction<O extends DatabaseObject,D extends Distance<D>> distanceFunction
DISTANCE_FUNCTION_PARAM.
| Constructor Detail |
|---|
protected DistanceBasedAlgorithm(Parameterization config)
Parameterizable
config - Parameterization| Method Detail |
|---|
public DistanceFunction<O,D> getDistanceFunction()
public D getDistanceFactory()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||