Class GeoOrthodromicMeasure
- java.lang.Object
-
- org.aksw.limes.core.measures.measure.AMeasure
-
- org.aksw.limes.core.measures.measure.space.ASpaceMeasure
-
- org.aksw.limes.core.measures.measure.space.GeoOrthodromicMeasure
-
- All Implemented Interfaces:
IMeasure,ISpaceMeasure
@Deprecated public class GeoOrthodromicMeasure extends ASpaceMeasure
Deprecated.Computes a similarity based on the geo distance of two points. Assumes that the input consists of latitute and longitude of two points. The similarity is computed as 1/(1+d) where d is the distance between the two points.- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
-
-
Field Summary
-
Fields inherited from class org.aksw.limes.core.measures.measure.space.ASpaceMeasure
D2R, radius
-
-
Constructor Summary
Constructors Constructor Description GeoOrthodromicMeasure()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static doubledistance(double lat1, double lon1, double lat2, double lon2)Deprecated.StringgetName()Deprecated.Returns name of a measure.doublegetRuntimeApproximation(double mappingSize)Deprecated.Returns the runtime approximation of a measure.doublegetSimilarity(Object object1, Object object2)Deprecated.Returns the similarity between two objects.doublegetSimilarity(Instance instance1, Instance instance2, String property1, String property2)Deprecated.Returns the similarity between two instances, given their corresponding properties.doublegetThreshold(int dimension, double simThreshold)Deprecated.StringgetType()Deprecated.Returns type of a measure.-
Methods inherited from class org.aksw.limes.core.measures.measure.space.ASpaceMeasure
setDimension
-
-
-
-
Method Detail
-
getThreshold
public double getThreshold(int dimension, double simThreshold)Deprecated.
-
getSimilarity
public double getSimilarity(Object object1, Object object2)
Deprecated.Description copied from interface:IMeasureReturns the similarity between two objects.- Parameters:
object1- , the source objectobject2- , the target object- Returns:
- The similarity of the objects
-
distance
public static double distance(double lat1, double lon1, double lat2, double lon2)Deprecated.
-
getType
public String getType()
Deprecated.Description copied from interface:IMeasureReturns type of a measure.- Returns:
- The runtime of the measure
-
getSimilarity
public double getSimilarity(Instance instance1, Instance instance2, String property1, String property2)
Deprecated.Description copied from interface:IMeasureReturns the similarity between two instances, given their corresponding properties.- Parameters:
instance1- , the source instanceinstance2- , the target instanceproperty1- , the source propertyproperty2- , the target property- Returns:
- The similarity of the instances
-
getName
public String getName()
Deprecated.Description copied from interface:IMeasureReturns name of a measure.- Returns:
- Measure name as a string
-
getRuntimeApproximation
public double getRuntimeApproximation(double mappingSize)
Deprecated.Description copied from interface:IMeasureReturns the runtime approximation of a measure.- Parameters:
mappingSize- , the mapping size returned by the measure- Returns:
- The runtime of the measure
-
-