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> implements DistanceBasedAlgorithm<O,D>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractDistanceBasedAlgorithm.Parameterizer<O,D extends Distance<D>>
Parameterization helper class.
|
Modifier and Type | Field and Description |
---|---|
private DistanceFunction<? super O,D> |
distanceFunction
Holds the instance of the distance function specified by
DistanceBasedAlgorithm.DISTANCE_FUNCTION_ID . |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputTypeRestriction, run
private DistanceFunction<? super O,D extends Distance<D>> distanceFunction
DistanceBasedAlgorithm.DISTANCE_FUNCTION_ID
.protected AbstractDistanceBasedAlgorithm(DistanceFunction<? super O,D> distanceFunction)
distanceFunction
- Distance functionpublic DistanceFunction<? super O,D> getDistanceFunction()
getDistanceFunction
in interface DistanceBasedAlgorithm<O,D extends Distance<D>>