de.lmu.ifi.dbs.elki.distance.distancefunction.geo
Class LatLngDistanceFunction

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
      extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractVectorDoubleDistanceFunction
          extended by de.lmu.ifi.dbs.elki.distance.distancefunction.geo.LatLngDistanceFunction
All Implemented Interfaces:
DistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDoubleDistanceFunction<NumberVector<?,?>>, InspectionUtilFrequentlyScanned, Parameterizable

public class LatLngDistanceFunction
extends AbstractVectorDoubleDistanceFunction

Distance function for 2D vectors in Latitude, Longitude form.


Nested Class Summary
static class LatLngDistanceFunction.Parameterizer
          Parameterization class.
 
Field Summary
static LatLngDistanceFunction STATIC
          Static instance
 
Constructor Summary
LatLngDistanceFunction()
          Deprecated. 
 
Method Summary
 double doubleDistance(NumberVector<?,?> o1, NumberVector<?,?> o2)
          Computes the distance between two given Objects according to this distance function.
 boolean equals(Object obj)
           
 SimpleTypeInformation<? super NumberVector<?,?>> getInputTypeRestriction()
          Get the input data type of the function.
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractVectorDoubleDistanceFunction
distance, getDistanceFactory
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction
instantiate, isMetric, isSymmetric
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.DistanceFunction
instantiate, isMetric, isSymmetric
 

Field Detail

STATIC

public static final LatLngDistanceFunction STATIC
Static instance

Constructor Detail

LatLngDistanceFunction

@Deprecated
public LatLngDistanceFunction()
Deprecated. 

Constructor. Use static instance instead!

Method Detail

doubleDistance

public double doubleDistance(NumberVector<?,?> o1,
                             NumberVector<?,?> o2)
Description copied from interface: PrimitiveDoubleDistanceFunction
Computes the distance between two given Objects according to this distance function.

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

getInputTypeRestriction

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

Specified by:
getInputTypeRestriction in interface DistanceFunction<NumberVector<?,?>,DoubleDistance>
Specified by:
getInputTypeRestriction in interface PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
Overrides:
getInputTypeRestriction in class AbstractVectorDoubleDistanceFunction
Returns:
Type restriction

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Release 0.4.0 (2011-09-20_1324)