
public class DimensionSelectingLatLngDistanceFunction extends AbstractVectorDoubleDistanceFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
DimensionSelectingLatLngDistanceFunction.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
dimlat
Latitude dimension
|
(package private) int |
dimlng
Longitude dimension
|
| Constructor and Description |
|---|
DimensionSelectingLatLngDistanceFunction(int dimlat,
int dimlng)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleDistance(NumberVector<?,?> o1,
NumberVector<?,?> o2)
Computes the distance between two given Objects according to this distance
function.
|
SimpleTypeInformation<? super NumberVector<?,?>> |
getInputTypeRestriction()
Get the input data type of the function.
|
distance, getDistanceFactoryinstantiate, isMetric, isSymmetricclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstantiate, isMetric, isSymmetricpublic DimensionSelectingLatLngDistanceFunction(int dimlat,
int dimlng)
dimlat - Dimension storing the latitudedimlng - Dimension storing the longitudepublic double doubleDistance(NumberVector<?,?> o1, NumberVector<?,?> o2)
PrimitiveDoubleDistanceFunctiono1 - first Objecto2 - second Objectpublic SimpleTypeInformation<? super NumberVector<?,?>> getInputTypeRestriction()
DistanceFunctiongetInputTypeRestriction in interface DistanceFunction<NumberVector<?,?>,DoubleDistance>getInputTypeRestriction in interface PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>getInputTypeRestriction in class AbstractVectorDoubleDistanceFunction