O
- the type of objects handled by this AlgorithmR
- the type of result to retrieve from this Algorithmpublic abstract class AbstractDistanceBasedAlgorithm<O,R extends Result> extends AbstractAlgorithm<R> implements DistanceBasedAlgorithm<O>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractDistanceBasedAlgorithm.Parameterizer<O>
Parameterization helper class.
|
Modifier and Type | Field and Description |
---|---|
private DistanceFunction<? super O> |
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> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DistanceFunction<? super O> |
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> distanceFunction
DistanceBasedAlgorithm.DISTANCE_FUNCTION_ID
.protected AbstractDistanceBasedAlgorithm(DistanceFunction<? super O> distanceFunction)
distanceFunction
- Distance functionpublic DistanceFunction<? super O> getDistanceFunction()
getDistanceFunction
in interface DistanceBasedAlgorithm<O>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.