O
- Object typeR
- the type of result to retrieve from this Algorithmpublic abstract class AbstractNumberVectorDistanceBasedAlgorithm<O,R extends Result> extends AbstractAlgorithm<R> implements DistanceBasedAlgorithm<O>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractNumberVectorDistanceBasedAlgorithm.Parameterizer<O>
Parameterization helper class.
|
Modifier and Type | Field and Description |
---|---|
protected NumberVectorDistanceFunction<? super O> |
distanceFunction
Holds the instance of the distance function specified by
DistanceBasedAlgorithm.DISTANCE_FUNCTION_ID . |
ALGORITHM_ID
DISTANCE_FUNCTION_ID
Modifier | Constructor and Description |
---|---|
protected |
AbstractNumberVectorDistanceBasedAlgorithm(NumberVectorDistanceFunction<? super O> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
NumberVectorDistanceFunction<? super O> |
getDistanceFunction()
Returns the distanceFunction.
|
getInputTypeRestriction, getLogger, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputTypeRestriction, run
protected NumberVectorDistanceFunction<? super O> distanceFunction
DistanceBasedAlgorithm.DISTANCE_FUNCTION_ID
.protected AbstractNumberVectorDistanceBasedAlgorithm(NumberVectorDistanceFunction<? super O> distanceFunction)
distanceFunction
- Distance functionpublic final NumberVectorDistanceFunction<? super O> getDistanceFunction()
getDistanceFunction
in interface DistanceBasedAlgorithm<O>
Copyright © 2019 ELKI Development Team. License information.