O
- the type of objects handled by this AlgorithmD
- the type of Distance used by this AlgorithmR
- the type of result to retrieve from this Algorithmpublic abstract class AbstractDistanceBasedAlgorithm<O,D extends Distance<D>,R extends Result> extends AbstractAlgorithm<R>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractDistanceBasedAlgorithm.Parameterizer<O,D extends Distance<D>>
Parameterization helper class.
|
Modifier and Type | Field and Description |
---|---|
static OptionID |
DISTANCE_FUNCTION_ID
OptionID for
DISTANCE_FUNCTION_ID . |
private DistanceFunction<? super O,D> |
distanceFunction
Holds the instance of the distance function specified by
DISTANCE_FUNCTION_ID . |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDistanceBasedAlgorithm(DistanceFunction<? super O,D> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DistanceFunction<? super O,D> |
getDistanceFunction()
Returns the distanceFunction.
|
getInputTypeRestriction, getLogger, makeParameterDistanceFunction, run
public static final OptionID DISTANCE_FUNCTION_ID
DISTANCE_FUNCTION_ID
.private DistanceFunction<? super O,D extends Distance<D>> distanceFunction
DISTANCE_FUNCTION_ID
.protected AbstractDistanceBasedAlgorithm(DistanceFunction<? super O,D> distanceFunction)
distanceFunction
- Distance functionpublic DistanceFunction<? super O,D> getDistanceFunction()