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. |
ALGORITHM_IDDISTANCE_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, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputTypeRestriction, runprivate 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 © 2019 ELKI Development Team. License information.