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

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.LngLatDistanceFunction
All Implemented Interfaces:
DistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDoubleDistanceFunction<NumberVector<?,?>>, InspectionUtilFrequentlyScanned, Parameterizable

public class LngLatDistanceFunction
extends AbstractVectorDoubleDistanceFunction

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


Nested Class Summary
static class LngLatDistanceFunction.Parameterizer
          Parameterization class.
 
Field Summary
static LngLatDistanceFunction STATIC
          Static instance
 
Constructor Summary
LngLatDistanceFunction()
          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 LngLatDistanceFunction STATIC
Static instance

Constructor Detail

LngLatDistanceFunction

@Deprecated
public LngLatDistanceFunction()
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)