de.lmu.ifi.dbs.elki.distance.distancefunction.geo
Class LatLngDistanceFunction
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.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.
STATIC
public static final LatLngDistanceFunction STATIC
- Static instance
LatLngDistanceFunction
@Deprecated
public LatLngDistanceFunction()
- 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