Class GeoGreatEllipticMeasure
- 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.GeoGreatEllipticMeasure
-
- All Implemented Interfaces:
IMeasure,ISpaceMeasure
@Deprecated public class GeoGreatEllipticMeasure extends ASpaceMeasure
Deprecated.implementation of https://en.wikipedia.org/wiki/Vincenty's_formulae Solve the inverse problem on the ellipsoid using a great elliptic section The inverse problem is: Given latitudes and longitudes of P1 and P2 on the ellipsoid compute the azimuth a_12 of the great elliptic section P1 P2 and the arc length s of the great elliptic curve. With the ellipsoid constants a, f, e^2 and e'^2- Author:
- Mohamed Sherif (sherif@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 GeoGreatEllipticMeasure()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static doublegetDistance(double lat1, double long1, double lat2, double long2)Deprecated.Computes the distance between two points on earth Input latitudes/longitudes are in Radiansstatic doublegetDistanceInDegrees(double lat1, double long1, double lat2, double long2)Deprecated.Computes the distance between two points on earth Input latitudes/longitudes by converting their latitude and longitude into radians.static doublegetDistanceInDegrees(Point x, Point y)Deprecated.Computes and returns distance between two points.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
-
getDistanceInDegrees
public static double getDistanceInDegrees(Point x, Point y)
Deprecated.Computes and returns distance between two points.- Parameters:
x- , first pointy- , second point- Returns:
- the distance between x and y
-
getDistanceInDegrees
public static double getDistanceInDegrees(double lat1, double long1, double lat2, double long2)Deprecated.Computes the distance between two points on earth Input latitudes/longitudes by converting their latitude and longitude into radians.- Parameters:
lat1- , Latitude of first pointlong1- , Longitude of first pointlat2- , Latitude of second pointlong2- , Longitude of second point- Returns:
- Distance between both points
-
getDistance
public static double getDistance(double lat1, double long1, double lat2, double long2)Deprecated.Computes the distance between two points on earth Input latitudes/longitudes are in Radians- Parameters:
lat1- , Latitude of first pointlong1- , Longitude of first pointlat2- , Latitude of second pointlong2- , Longitude of second point- Returns:
- Distance between both points
-
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
-
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
-
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
-
getName
public String getName()
Deprecated.Description copied from interface:IMeasureReturns name of a measure.- Returns:
- Measure name as a string
-
-