de.lmu.ifi.dbs.elki.distance.distancefunction
Interface PrimitiveDistanceFunction<O,D extends Distance<?>>

Type Parameters:
O - input object type
D - distance result type
All Superinterfaces:
DistanceFunction<O,D>, InspectionUtilFrequentlyScanned, Parameterizable
All Known Subinterfaces:
PrimitiveDoubleDistanceFunction<O>, SpatialPrimitiveDistanceFunction<V,D>, SpatialPrimitiveDoubleDistanceFunction<V>
All Known Implementing Classes:
AbstractCosineDistanceFunction, AbstractDimensionsSelectingDoubleDistanceFunction, AbstractEditDistanceFunction, AbstractPrimitiveDistanceFunction, AbstractVectorDoubleDistanceFunction, ArcCosineDistanceFunction, CosineDistanceFunction, DimensionSelectingDistanceFunction, DimensionSelectingLatLngDistanceFunction, DimensionsSelectingEuclideanDistanceFunction, DTWDistanceFunction, EDRDistanceFunction, ERPDistanceFunction, EuclideanDistanceFunction, FooKernelFunction, HistogramIntersectionDistanceFunction, HSBHistogramQuadraticDistanceFunction, LatLngDistanceFunction, LCSSDistanceFunction, LinearKernelFunction, LngLatDistanceFunction, LPNormDistanceFunction, ManhattanDistanceFunction, MaximumDistanceFunction, MinimumDistanceFunction, PearsonCorrelationDistanceFunction, PolynomialKernelFunction, RGBHistogramQuadraticDistanceFunction, SquaredEuclideanDistanceFunction, SquaredPearsonCorrelationDistanceFunction, WeightedDistanceFunction, WeightedLPNormDistanceFunction, WeightedPearsonCorrelationDistanceFunction, WeightedSquaredEuclideanDistanceFunction, WeightedSquaredPearsonCorrelationDistanceFunction

public interface PrimitiveDistanceFunction<O,D extends Distance<?>>
extends DistanceFunction<O,D>

Primitive distance function that is defined on some kind of object.


Method Summary
 D distance(O o1, O o2)
          Computes the distance between two given DatabaseObjects according to this distance function.
 SimpleTypeInformation<? super O> getInputTypeRestriction()
          Get the input data type of the function.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.DistanceFunction
getDistanceFactory, instantiate, isMetric, isSymmetric
 

Method Detail

distance

D distance(O o1,
           O o2)
Computes the distance between two given DatabaseObjects according to this distance function.

Parameters:
o1 - first DatabaseObject
o2 - second DatabaseObject
Returns:
the distance between two given DatabaseObjects according to this distance function

getInputTypeRestriction

SimpleTypeInformation<? super O> getInputTypeRestriction()
Description copied from interface: DistanceFunction
Get the input data type of the function.

Specified by:
getInputTypeRestriction in interface DistanceFunction<O,D extends Distance<?>>
Returns:
Type restriction

Release 0.4.0 (2011-09-20_1324)