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 AbstractPrimitiveDistanceBasedAlgorithm<O,D extends Distance<?>,R extends Result> extends AbstractAlgorithm<R>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractPrimitiveDistanceBasedAlgorithm.Parameterizer<O,D extends Distance<D>>
Parameterization helper class.
|
Modifier and Type | Field and Description |
---|---|
protected PrimitiveDistanceFunction<? super O,D> |
distanceFunction
Holds the instance of the distance function specified by
DistanceBasedAlgorithm.DISTANCE_FUNCTION_ID . |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPrimitiveDistanceBasedAlgorithm(PrimitiveDistanceFunction<? super O,D> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PrimitiveDistanceFunction<? super O,D> |
getDistanceFunction()
Returns the distanceFunction.
|
getInputTypeRestriction, getLogger, makeParameterDistanceFunction, run
protected PrimitiveDistanceFunction<? super O,D extends Distance<?>> distanceFunction
DistanceBasedAlgorithm.DISTANCE_FUNCTION_ID
.protected AbstractPrimitiveDistanceBasedAlgorithm(PrimitiveDistanceFunction<? super O,D> distanceFunction)
distanceFunction
- Distance functionpublic PrimitiveDistanceFunction<? super O,D> getDistanceFunction()