de.lmu.ifi.dbs.elki.distance.distancefunction.geo
Class LngLatDistanceFunction
java.lang.Object
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractVectorDoubleDistanceFunction
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.
STATIC
public static final LngLatDistanceFunction STATIC
- Static instance
LngLatDistanceFunction
@Deprecated
public LngLatDistanceFunction()
- Deprecated.
- Constructor. Use static instance instead!
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 Objecto2
- 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